• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wrong result with createDirectoryAtPath:attributes:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong result with createDirectoryAtPath:attributes:


  • Subject: Re: Wrong result with createDirectoryAtPath:attributes:
  • From: Stéphane Sudre <email@hidden>
  • Date: Sun, 14 Dec 2003 22:56:20 +0100

On dimanche, dicembre 14, 2003, at 09:57 PM, Nat! wrote:

Am 14.12.2003 um 21:38 schrieb Stiphane Sudre:

BUT if I then call:

chown(myPath,userID_,groupID_); // user ID= 501 groupID_= 20

the folder owner is perfectly correct.

So I have 2 ideas currently. Either these Foundation APIs are completely buggy (I doubt it's the case)

Yeah highly unlikely :) :)

or the documentation is completely unclear about what attributes are needed.

Any other idea or suggestion?


Well a suggestion would be to read the attributes of a folder and check out what keys are available and then set all of them. Will this work ? I wouldn't bet on it. Probably createDirectoryAtPath ist just a wrapper for creat without any chown/chgrp calls.

Well there's a bunch of other attributes but the doc is stating you can only set owner/group/perm/creation date so I doubt it's the issue.

I can of course use chown to work around this but I'm finding that I'm using too many workarounds recently and I would like to use just the Foundation API as otherwise it's going to slow down the whole process...

Just my unenlightned suggestions, but you asked for it...

They are welcome.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Wrong result with createDirectoryAtPath:attributes: (From: Nat! <email@hidden>)

  • Prev by Date: Re: Wrong result with createDirectoryAtPath:attributes:
  • Next by Date: Re: Wrong result with createDirectoryAtPath:attributes:
  • Previous by thread: Re: Wrong result with createDirectoryAtPath:attributes:
  • Next by thread: Re: Wrong result with createDirectoryAtPath:attributes:
  • Index(es):
    • Date
    • Thread