fix fileinfo for non existing files
This commit is contained in:
parent
1736c70075
commit
d5061b8139
|
@ -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 New Issue