mirror of
https://github.com/nextcloud/server.git
synced 2026-03-26 20:33:55 -04:00
Users of getFolderContent are mostly interested in the unecrypted file size
This commit is contained in:
parent
db0b291f63
commit
6aa9daf4e6
1 changed files with 4 additions and 0 deletions
4
lib/private/files/cache/cache.php
vendored
4
lib/private/files/cache/cache.php
vendored
|
|
@ -178,6 +178,10 @@ class Cache {
|
|||
if ($file['storage_mtime'] == 0) {
|
||||
$file['storage_mtime'] = $file['mtime'];
|
||||
}
|
||||
if ($file['encrypted']) {
|
||||
$file['encrypted_size'] = $file['size'];
|
||||
$file['size'] = $file['unencrypted_size'];
|
||||
}
|
||||
}
|
||||
return $files;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue