Re: POSIX
Re: POSIX
- Subject: Re: POSIX
- From: Andrew Farmer <email@hidden>
- Date: Thu, 8 Feb 2007 18:50:10 -0800
On 08 Feb 07, at 18:18, <email@hidden> wrote:
I have been trying to interpret POSIX values returned from the
attributes obtained from NSFilePosixPermissions and cannot make
heads or tails out of the returned value.
The value returned is 420. What does this mean and how do I go
about parsing this number into the specific permissions? And
please tell me where this is documented. (I have looked).
It's not particularly well-documented; it's often assumed that anyone
using a UNIX system is familiar with file permissions. They are,
however, defined in 'man stat'; note that the values are _octal_.
(420 decimal = 0644 octal: owner read/write, group read, world read.)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
- Follow-Ups:
- Re: POSIX
- From: Alastair Houghton <email@hidden>
References: | |
| >POSIX (From: <email@hidden>) |