diff options
-rw-r--r-- | apps/files_external/lib/sftp.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index e0655cc8d3d..aec56d088d5 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -166,6 +166,9 @@ class SFTP extends \OC\Files\Storage\Common { public function opendir($path) { try { $list = $this->client->nlist($this->absPath($path)); + if ($list === false) { + return false; + } $id = md5('sftp:' . $path); $dirStream = array(); |