public function rmdir($dir) { if (!$this->check_login()) { return false; } return ftp_rmdir($this->conn_id, $dir); }