english/libraries/joomla/filesystem/path.php
/**
	 * Checks if a path's permissions can be changed
	 *
	 * @param   string   $path   Path to check
	 *
	 * @return  boolean  True if path can have mode changed
	 *
	 * @since   11.1
	 */
Checks if a path's permissions can be changed
@param   string   $path   Path to check

@return  boolean  True if path can have mode changed


Checks if a path ' s permissions can be changed @param string $path Path to check @return boolean True if path can have mode changed
public static function canChmod($path)
	{
		$perms = fileperms($path);
		if ($perms !== false) {
			if (@chmod($path, $perms ^ 0001)) {
				@chmod($path, $perms);
				return true;
			}
		}
		return false;
	}
public static function canChmod ( $ path ) { $ perms = fileperms ( $ path ) ; if ( $ perms !== false ) { if ( @ chmod ( $ path , $ perms ^ 0001 ) ) { @ chmod ( $ path , $ perms ) ; return true ; } } return false ; }
Checks if a path's permissions can be changed
 @param   string   $path   Path to check
Checks if a path ' s permissions can be changed @param string $path Path to check