diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-06-14 16:42:56 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-06-15 12:01:57 +0200 |
commit | 42d7a32774e452398a406cb2ad4fb9cb0dccf6a4 (patch) | |
tree | 2e52f5421d8f746117370c768f97f12f83d3d8a9 | |
parent | 9bc43d5e7e4f84288a714da5c67b2c9d77add014 (diff) | |
download | nextcloud-server-42d7a32774e452398a406cb2ad4fb9cb0dccf6a4.tar.gz nextcloud-server-42d7a32774e452398a406cb2ad4fb9cb0dccf6a4.zip |
fix updating folder sizes with cross storage move
-rw-r--r-- | lib/private/files/cache/updater.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index 1e180e7993a..1131a104f8a 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -170,6 +170,7 @@ class Updater { list($targetStorage, $targetInternalPath) = $this->view->resolvePath($target); if ($sourceStorage && $targetStorage) { + $sourceCache = $sourceStorage->getCache($sourceInternalPath); $targetCache = $targetStorage->getCache($sourceInternalPath); if ($targetCache->inCache($targetInternalPath)) { $targetCache->remove($targetInternalPath); @@ -187,7 +188,7 @@ class Updater { $targetCache->update($fileId, array('mimetype' => $mimeType)); } - $targetCache->correctFolderSize($sourceInternalPath); + $sourceCache->correctFolderSize($sourceInternalPath); $targetCache->correctFolderSize($targetInternalPath); $this->correctParentStorageMtime($sourceStorage, $sourceInternalPath); $this->correctParentStorageMtime($targetStorage, $targetInternalPath); |