|
|
|
@ -1436,15 +1436,16 @@ class View { |
|
|
|
if (!Filesystem::isValidPath($directory)) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
|
|
|
|
$path = $this->getAbsolutePath($directory); |
|
|
|
$path = Filesystem::normalizePath($path); |
|
|
|
$mount = $this->getMount($directory); |
|
|
|
if (!$mount) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
$storage = $mount->getStorage(); |
|
|
|
$internalPath = $mount->getInternalPath($path); |
|
|
|
if ($storage) { |
|
|
|
if (!$storage) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
|
|
|
|
$cache = $storage->getCache($internalPath); |
|
|
|
$user = \OC_User::getUser(); |
|
|
|
|
|
|
|
@ -1551,9 +1552,6 @@ class View { |
|
|
|
} |
|
|
|
|
|
|
|
return array_values($files); |
|
|
|
} else { |
|
|
|
return []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|