fix fileinfo for non existing files

This commit is contained in:
Robin Appelman 2015-11-10 14:34:38 +01:00
parent 1736c70075
commit d5061b8139
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}