SFTP: nlist() on a non-existent directory resulted in error

This commit is contained in:
terrafrost 2016-04-11 15:18:06 -05:00
parent 6a97ddfa72
commit d22bcd63cc

View File

@ -789,7 +789,7 @@ class Net_SFTP extends Net_SSH2
{ {
$files = $this->_list($dir, false); $files = $this->_list($dir, false);
if (!$recursive) { if (!$recursive || $files === false) {
return $files; return $files;
} }