From 90e0d15b6de9e04bf37d775887dd9de78f302ce5 Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 5 May 2022 16:37:50 +0200 Subject: [PATCH] Fix missing error message in dir() When access is denied to a sub-folder an empty list of files is returned instead of an error. --- src/Wrapped/Share.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Wrapped/Share.php b/src/Wrapped/Share.php index eb68d38..ca46882 100644 --- a/src/Wrapped/Share.php +++ b/src/Wrapped/Share.php @@ -179,6 +179,8 @@ class Share extends AbstractShare { $output = $this->execute('dir'); $this->execute('cd /'); + //check output for errors + $this->parseOutput($output, $path); return $this->parser->parseDir($output, $path, function (string $path) { return $this->getAcls($path);