references:joomla.framework:filesystem:jpath-canchmodcanChmod
Checks if a path’s permissions can be changed. Returns true if permissions can be changed, false otherwise. Syntaxboolean canChmod ( $path )
ExamplesExample jimport( 'joomla.filesystem.path' ); if (JPath::canChmod( 'images/' )) { echo "Permissions can be changed!"; } else { echo "Cannot change permissions!"; } might produce: Result Permissions can be changed! Discussion |


