[file->chmod] changes the unix file permissions of a file. The permissions may be expressed in either octal or decimal notation.
file object->chmod(octal notation) file object->chmod(decimal notation)
Use the [file->chmod] tag. The following example changes the Unix file system permissions of a file to -rwxrwxr-x (read, write, and execute permissions for the file owner, read, write, and execute permissions for the file group, and read and execute permissions for all other system users).
local(f = file('/path/to/file.txt')) #f->chmod('0775') // using octal notation #f->chmod(509) // using decimal notation
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft