Re: File permissions when copying files using NSFileManager
Re: File permissions when copying files using NSFileManager
- Subject: Re: File permissions when copying files using NSFileManager
- From: "Sean McBride" <email@hidden>
- Date: Tue, 7 Feb 2006 22:45:15 -0500
Jeff Brown (email@hidden) on 2006-02-07 17:28 said:
>Thanks for that but I'm still not sure of the exact
>code for the changeFileAttributes:atPath: method -
>specifically the value for NSFilePosixPermissions. If
>you can give me the line of code I need to put in to
>change the file to read/write for Owner, Group and
>Others I'd very much appreciate it.
I've never used changeFileAttributes:atPath: but I suspect the
permissions would be the usual POSIX type, which are described in the
'chmod' man page (type 'man chmod') in Terminal.
But you won't be able to change the permissions of a file on a volume
where 'ignore permissions' is on.
--
"Every rule has an exception; especially this one."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden