Some issues with - createDirectoryAtPath: attributes:
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.