src/sb/FTP/Client.php
public function chmod($remote_file, $mode)
    {
        $mode = octdec(str_pad($mode, 4, '0', STR_PAD_LEFT));
        $mode = (int) $mode;

        if (!@ftp_chmod($this->connection, $mode, $remote_file) !== false) {
            throw new \Exception("Could not change remote file to mode: " . $mode);
        }

        return true;
    }
public function chmod($remote_file, $mode)
    {
        $mode = octdec(str_pad($mode, 4, '0', STR_PAD_LEFT));
        $mode = (int) $mode;

        if (!@ftp_chmod($this->connection, $mode, $remote_file) !== false) {
            throw new \Exception("Could not change remote file to mode: " . $mode);
        }

        return true;
    }
public function chmod ( $ remote_file , $ mode ) { $ mode = octdec ( str_pad ( $ mode , 4 , '0' , STR_PAD_LEFT ) ) ; $ mode = ( int ) $ mode ; if ( ! @ ftp_chmod ( $ this -> connection , $ mode , $ remote_file ) !== false ) { throw new \ Exception ( "Could not change remote file to mode: " . $ mode ) ; } return true ; }
Change the file mode of a remote file
@param string $remote_file The path to the remote file
@param integer $mode The file mode e.g. 0644, 0777
@return boolean
Change the file mode of a remote file