mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 14:24:59 -04:00
fix fileinfo for non existing files
This commit is contained in:
parent
1736c70075
commit
d5061b8139
1 changed files with 4 additions and 0 deletions
|
|
@ -1241,6 +1241,10 @@ class View {
|
|||
if ($storage) {
|
||||
$data = $this->getCacheEntry($storage, $internalPath, $relativePath);
|
||||
|
||||
if(!is_array($data)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($mount instanceof MoveableMount && $internalPath === '') {
|
||||
$data['permissions'] |= \OCP\Constants::PERMISSION_DELETE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue