From 1dbb9f0366564b27c8e6da4d8654419a2b66f685 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 30 Jul 2023 22:00:18 +0300 Subject: [PATCH] keep native functions inside the nlistr method --- library/ftp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ftp.php b/library/ftp.php index ae949bc..1db68c3 100644 --- a/library/ftp.php +++ b/library/ftp.php @@ -93,7 +93,7 @@ class Ftp { $result = []; - foreach ($this->nlist($path) as $line) { + foreach (ftp_nlist($this->_connection, $path) as $line) { if (ftp_size($this->_connection, $line) == -1) {