From ddbbe1742fda9b508da5c6369dc2a2d5e19cec95 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 7 Jan 2016 18:13:35 +0100 Subject: propagate folder size in the same query for write updates --- lib/private/files/cache/scanner.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/private/files/cache/scanner.php') diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 1c50978a2e5..60daa323b4b 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -198,6 +198,7 @@ class Scanner extends BasicEmitter implements IScanner { if (!empty($newData)) { $data['fileid'] = $this->addToCache($file, $newData, $fileId); } + $data['oldSize'] = $cacheData['size']; // post-emit only if it was a file. By that we avoid counting/treating folders as files if ($data['mimetype'] !== 'httpd/unix-directory') { -- cgit v1.2.3