add list metod

This commit is contained in:
ghost 2023-07-29 15:50:49 +03:00
parent 712d67f6bf
commit c160549cf5

View File

@ -84,6 +84,11 @@ class Ftp {
return false; return false;
} }
public function list(string $path) {
return ftp_nlist($this->_connection, $path);
}
public function close() { public function close() {
return ftp_close($this->_connection); return ftp_close($this->_connection);