• 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
Some issues with - createDirectoryAtPath: attributes:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some issues with - createDirectoryAtPath: attributes:


  • Subject: Some issues with - createDirectoryAtPath: attributes:
  • From: email@hidden
  • Date: Mon, 1 Apr 2002 12:29:34 +0200

What kind of values are you supposed to give to the NSFilePosixPermissions key?

I'm trying to create a folder with the following permissions : drwxr-xr-x . So I tried to use:

[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:755],NSFilePosixPermissions,nil]

What I'm getting is this: d-wxrw--wt. No need to say it's not the expected result.

755 is of course S_IRWXU+S_IRGRP+S_IXGRP+S_IROTH+S_IXOTH as defined in /usr/include/sys/stat.h .

755 is the value used for the chmod C call or the chmod tool.

So what's wrong: the API, the Documentation, my code?

BTW, is there a Cocoa API which just moves a file and not copy it and delete the original when the source and destination are on the same disk/partition?
_______________________________________________
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.
  • Follow-Ups:
    • Re: Some issues with - createDirectoryAtPath: attributes:
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: How do I make the view scroll to top?
  • Next by Date: Re: Some issues with - createDirectoryAtPath: attributes:
  • Previous by thread: Re: Image Capture Framework docs?
  • Next by thread: Re: Some issues with - createDirectoryAtPath: attributes:
  • Index(es):
    • Date
    • Thread