public static function permission(String $name, Int $permission = 0755) : Bool
    {
        $name = Info::rpath($name);

        if( ! file_exists($name) )
        {
            throw new Exception\FileNotFoundException(NULL, $name);
        }

        return chmod($name, $permission);
    }
public static function permission(String $name, Int $permission = 0755) : Bool
    {
        $name = Info::rpath($name);

        if( ! file_exists($name) )
        {
            throw new Exception\FileNotFoundException(NULL, $name);
        }

        return chmod($name, $permission);
    }
public static function permission ( String $ name , Int $ permission = 0755 ) : Bool { $ name = Info :: rpath ( $ name ) ; if ( ! file_exists ( $ name ) ) { throw new Exception \ FileNotFoundException ( NULL , $ name ) ; } return chmod ( $ name , $ permission ) ; }
Changes file mode.

@param string $name
@param int    $permission = 0755

@return bool
Changes file mode .