public function rmdir($directory = null)
    {
        if (\ftp_rmdir($this->_stream, $directory)) {
            return true;
        }

        $this->error = 'Failed to remove directory "'.$directory.'"';

        return false;
    }
public function rmdir($directory = null)
    {
        if (\ftp_rmdir($this->_stream, $directory)) {
            return true;
        }

        $this->error = 'Failed to remove directory "'.$directory.'"';

        return false;
    }
public function rmdir ( $ directory = null ) { if ( \ ftp_rmdir ( $ this -> _stream , $ directory ) ) { return true ; } $ this -> error = 'Failed to remove directory "' . $ directory . '"' ; return false ; }
Remove directory on FTP server

@param string $directory

@return bool
Remove directory on FTP server