| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
FileSystem |
JPath |
getPermissions |
getPermissions() |
Never | Work in Progress |
Get the permissions of the file or folder on a given path.
string getPermissions ( $path )
| $path | string | is a string containing the path of a file or folder. |
Example
jimport( 'joomla.filesystem.path' ); echo "File permissions: " . JPath::getPermissions( JPATH_ROOT . '/robots.txt' );
might produce:
Result
File permissions: rw-rw-rw-