diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-11-14 08:48:06 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-12-06 15:51:49 +0100 |
commit | 6aa9daf4e6bec5c2c15b896f99b07ce9ebe310cf (patch) | |
tree | 8849c69e34ad52a38e6234fc5a414a6c8a4e8ec8 /lib | |
parent | db0b291f63b4ee2a05769b1ab69ee258eed00d7d (diff) | |
download | nextcloud-server-6aa9daf4e6bec5c2c15b896f99b07ce9ebe310cf.tar.gz nextcloud-server-6aa9daf4e6bec5c2c15b896f99b07ce9ebe310cf.zip |
Users of getFolderContent are mostly interested in the unecrypted file size
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/cache.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index ac50a988e32..8e682a96b75 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -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 { |