src/Path.php
public static function canChmod($path)
	{
		if (!file_exists($path))
		{
			return false;
		}

		$perms = @fileperms($path);

		if ($perms !== false)
		{
			if (@chmod($path, $perms ^ 0001))
			{
				@chmod($path, $perms);

				return true;
			}
		}

		return false;
	}
public static function canChmod($path)
	{
		if (!file_exists($path))
		{
			return false;
		}

		$perms = @fileperms($path);

		if ($perms !== false)
		{
			if (@chmod($path, $perms ^ 0001))
			{
				@chmod($path, $perms);

				return true;
			}
		}

		return false;
	}
public static function canChmod ( $ path ) { if ( ! file_exists ( $ path ) ) { return false ; } $ 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.

@return  boolean  True if path can have mode changed.

@since   1.0
Checks if a path s permissions can be changed .