Re: Detecting system protected folders.

2009-12-21 Thread Sandro Noël
Is there anything in Cocoa/Carbon to retrieve ACL From files? Or do i have to mess around with the ACL Library directly ? Regards. Sandor Noel. On 2009-12-19, at 12:27 PM, Sandro Noël wrote: > >> >> Testing this in Terminal: >> mv ~/Music ~/lose >> >> I get a Permission denied error message

Re: Detecting system protected folders.

2009-12-19 Thread Sandro Noël
> > 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

Re: Detecting system protected folders.

2009-12-18 Thread Greg Guerin
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, whi

Re: Detecting system protected folders.

2009-12-18 Thread Sandro Noël
On 2009-12-18, at 3:25 PM, Greg Guerin wrote: > Sandro Noël wrote: > >> it does not work, even if i select the root folder of my hard drive i still >> get the permission to rename it. > > > What effective user id is it running as? What groups is that user id a > member of? > > Run this Term

Re: Detecting system protected folders.

2009-12-18 Thread Greg Guerin
Sandro Noël wrote: it does not work, even if i select the root folder of my hard drive i still get the permission to rename it. What effective user id is it running as? What groups is that user id a member of? Run this Terminal command to identify the user: id -p Run this Terminal comm

Re: Detecting system protected folders.

2009-12-18 Thread Sandro Noël
On 2009-12-18, at 1:11 PM, Sandro Noël wrote: > On 2009-12-18, at 12:25 PM, Jens Alfke wrote: > >> >> On Dec 18, 2009, at 6:12 AM, Sandro Noël wrote: >> >>> there are some system protected folders that will not allow themselves to >>> be renamed. >>> I would like to disable the possibility of

Re: Detecting system protected folders.

2009-12-18 Thread Sandro Noël
On 2009-12-18, at 12:25 PM, Jens Alfke wrote: > > On Dec 18, 2009, at 6:12 AM, Sandro Noël wrote: > >> there are some system protected folders that will not allow themselves to be >> renamed. >> I would like to disable the possibility of even starting to edit there names >> in my interface. >>

Re: Detecting system protected folders.

2009-12-18 Thread Jens Alfke
On Dec 18, 2009, at 6:12 AM, Sandro Noël wrote: > there are some system protected folders that will not allow themselves to be > renamed. > I would like to disable the possibility of even starting to edit there names > in my interface. > I would need a function that can tell me if the folder I'

Detecting system protected folders.

2009-12-18 Thread Sandro Noël
Hello In an OutlineView, listing the content of the hard drive. there are some system protected folders that will not allow themselves to be renamed. I would like to disable the possibility of even starting to edit there names in my interface. I would need a function that can tell me if the fol