[futurebasic] Re: [FB] Re: Mac OS X Unix file permissions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Thu, 29 May 2003 13:07:06 +1200
On Thursday, May 29, 2003, David Cox wrote:

> Will DEF FN OSXPermission(filespec, perm) work with folders or only 
> files?

Yes.  To set read/write by all, for a folder:
err = fn SetOSXPermissions( fSpec, &O777 )

To set read/write by all, for a file:
err = fn SetOSXPermissions( fSpec, &O666 )

A folder has to have the low-order bit set in each octal digit (octal 
777) whereas for a file that bit must be clear (octal 666).

Robert P.