public function chmod($mode, $filename)
    {
        $result = @ftp_chmod($this->connection, $mode, $filename);
        
        if ($result === false) {
            throw new Exception('Unable to change permissions');
        }

        return $this;
    }
public function chmod($mode, $filename)
    {
        $result = @ftp_chmod($this->connection, $mode, $filename);
        
        if ($result === false) {
            throw new Exception('Unable to change permissions');
        }

        return $this;
    }
public function chmod ( $ mode , $ filename ) { $ result = @ ftp_chmod ( $ this -> connection , $ mode , $ filename ) ; if ( $ result === false ) { throw new Exception ( 'Unable to change permissions' ) ; } return $ this ; }
Set permissions on a file via FTP

@param int $mode
@param string $filename

@return FTPClient
Set permissions on a file via FTP