Support Joomla!

references:joomla.framework:filesystem:jpath-canchmod

Table of Contents

canChmod

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage FileSystem Class JFolder Method canChmod Reference canChmod() Never Work in Progress

Checks if a path’s permissions can be changed. Returns true if permissions can be changed, false otherwise.

Syntax

boolean canChmod ( $path )

$path string is a string containing the path to check.

Examples

Example

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

Full name:
E-Mail:
 
references/joomla.framework/filesystem/jpath-canchmod.txt (360568 views) · Last modified: 2007/08/15 15:06