File permissions when copying files using NSFileManager
File permissions when copying files using NSFileManager
- Subject: File permissions when copying files using NSFileManager
- From: Jeff Brown <email@hidden>
- Date: Wed, 1 Feb 2006 15:34:43 -0800 (PST)
For the sake of this explanation, I've got 2 computers
(A & B) on a network. Using NSFileManager's
copyPath:toPath:handler: method, I copy a file from
A's harddrive to an external harddrive attached to A.
Then when I'm using B and try change one of those
files, they have read only permission. How do I change
the file attributes at the time of copying or
immediately after to give read write access to user,
groups and other. I've tried using
changeFileAttributes:atPath: but have had no success -
I'm assuming I'm not using it properly. Cheers Jeff.
_______________________________________________
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