mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 08:10:58 +00:00
SFTP: nlist() on a non-existent directory resulted in error
This commit is contained in:
parent
6a97ddfa72
commit
d22bcd63cc
@ -789,7 +789,7 @@ class Net_SFTP extends Net_SSH2
|
||||
{
|
||||
$files = $this->_list($dir, false);
|
||||
|
||||
if (!$recursive) {
|
||||
if (!$recursive || $files === false) {
|
||||
return $files;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user