summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-11-28 12:59:24 -0800
committerMorris Jobke <morris.jobke@gmail.com>2013-11-28 12:59:24 -0800
commit41a1a32e5ad19c041e22b20873e769ecfa6aa8c8 (patch)
treebe848f8b35efa329a81d1fa22a3258fb2071edbc /lib
parent0cbe9d79baec7aa3a38dfc9b5db8b5a1eee7b930 (diff)
parent348706854cd47f3fd104fbc8f5af7595980f5084 (diff)
downloadnextcloud-server-41a1a32e5ad19c041e22b20873e769ecfa6aa8c8.tar.gz
nextcloud-server-41a1a32e5ad19c041e22b20873e769ecfa6aa8c8.zip
Merge pull request #6099 from owncloud/fix_source_not_found_warnings
make sure that we don't try to access an already deleted files
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/updater.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index 9ef147aa157..73bc30e538f 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -59,9 +59,13 @@ class Updater {
*/
list($storage, $internalPath) = self::resolvePath($path);
if ($storage) {
+ $parent = dirname($internalPath);
+ if ($parent === '.') {
+ $parent = '';
+ }
$cache = $storage->getCache($internalPath);
$cache->remove($internalPath);
- $cache->correctFolderSize($internalPath);
+ $cache->correctFolderSize($parent);
self::correctFolder($path, time());
self::correctParentStorageMtime($storage, $internalPath);
}