From c160549cf57f0edcd87932badab3aeda4b1c0472 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 29 Jul 2023 15:50:49 +0300 Subject: [PATCH] add list metod --- library/ftp.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/ftp.php b/library/ftp.php index 56e4c2a..e2472f7 100644 --- a/library/ftp.php +++ b/library/ftp.php @@ -84,6 +84,11 @@ class Ftp { return false; } + public function list(string $path) { + + return ftp_nlist($this->_connection, $path); + } + public function close() { return ftp_close($this->_connection);