Skip to content

Commit 3bf40d4

Browse files
salmart-devbackportbot[bot]
authored andcommitted
fix(files_external): set size to -1 for root entry
This allows the system to recogise that the mount has not been scanned and do it when necessary. Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent 169d237 commit 3bf40d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_external/lib/Service/MountCacheService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function getCacheEntryForRoot(IUser $user, StorageConfig $storage): ICac
118118
$data = [
119119
'path' => '',
120120
'path_hash' => md5(''),
121-
'size' => 0,
121+
'size' => -1,
122122
'unencrypted_size' => 0,
123123
'mtime' => 0,
124124
'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE,

0 commit comments

Comments
 (0)