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.
This commit is contained in:
Julian 2022-05-05 16:37:50 +02:00 committed by GitHub
commit 90e0d15b6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,6 +179,8 @@ class Share extends AbstractShare {
$output = $this->execute('dir'); $output = $this->execute('dir');
$this->execute('cd /'); $this->execute('cd /');
//check output for errors
$this->parseOutput($output, $path);
return $this->parser->parseDir($output, $path, function (string $path) { return $this->parser->parseDir($output, $path, function (string $path) {
return $this->getAcls($path); return $this->getAcls($path);