Re: Detecting system protected folders.
Re: Detecting system protected folders.
- Subject: Re: Detecting system protected folders.
- From: Greg Guerin <email@hidden>
- Date: Fri, 18 Dec 2009 19:32:58 -0700
Sandro Noël wrote:
Well for instance if I try to rename the music folder in my
personal home folder using Finder
The system/finder will not let me do that because the folder is
needed by the system.
Testing this in Terminal:
mv ~/Music ~/lose
I get a Permission denied error message, which suggests an ACL.
It's confirmed by this command:
ls -led ~/Music
Based on this, my new guess is that NSFileManager isn't using the ACL
to check for writability. You may want to look at other
NSFileManager methods, or look into other ways to read the ACL.
-- GG_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden