diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index a7c67bd8..ea35f934 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2859,7 +2859,7 @@ class SFTP extends SSH2 { return !$recursive || $this->filetype($path) != 'dir' ? $this->get_stat_cache_prop($path, 'size') : - $this->recursiveFilesize($this->rawlist($path, true)); + self::recursiveFilesize($this->rawlist($path, true)); } /**