FileModeToSymbolic()
Converts a mode mask to it's symbolic representation.
Introduced: 7.0.0.155
FileModeToSymbolic( mode=string );
Returns: String
| Argument | Description |
|---|---|
|
mode
string,
required
|
edit
A three-digit value, in which each digit specifies the file access for individuals and groups:
Each digit of this code sets permissions for the appropriate individual or group:
You use the sums of these numbers to indicate combinations of the permissions:
For example, 400 specifies that only the owner can read the file; 004 specifies that anyone can read the file. |
Examples
editdump(server.lucee.version); // requires Lucee 7
flush;
dump( FileModeToSymbolic( 755 ) ); // returns rwxr-xr-x
See also
- File handling
- FileSetAccessMode()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)