Skip to content

Commit 66fde3f

Browse files
committed
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 c30683e commit 66fde3f

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
@@ -119,7 +119,7 @@ private function getCacheEntryForRoot(IUser $user, StorageConfig $storage): ICac
119119
$data = [
120120
'path' => '',
121121
'path_hash' => md5(''),
122-
'size' => 0,
122+
'size' => -1,
123123
'unencrypted_size' => 0,
124124
'mtime' => 0,
125125
'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE,

0 commit comments

Comments
 (0)