Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Files.GetPosixPermissions

Queries posix file permissions.

Component Version macOS Windows Linux Server iOS SDK
Files 4.3 ✅ Yes ❌ No ✅ Yes ✅ Yes, on macOS and Linux ✅ Yes
MBS( "Files.GetPosixPermissions"; Path )   More

Parameters

Parameter Description Example
Path The native path to the file or folder. "/Users/John/Desktop/test.txt"

Result

Returns OK or error message.

Description

Queries posix file permissions.
Path must be valid and exist.
This function needs a native path. Please use Path.FileMakerPathToNativePath function in order to convert a FileMaker style path to a native path.
See chmod command manual page. The plugin converts parameter to string and parses it as octal number. This way you can pass 777 as number and it's interpreted as expected.

Examples

Query permissions:

MBS( "Files.GetPosixPermissions"; "/Users/cs/Desktop/test" )
# shows for example 755

See also

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 29th May 2017


Files.GetPathFromNodeID - Files.GetTagNames