diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-11-28 12:59:24 -0800 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-28 12:59:24 -0800 |
commit | 41a1a32e5ad19c041e22b20873e769ecfa6aa8c8 (patch) | |
tree | be848f8b35efa329a81d1fa22a3258fb2071edbc /lib | |
parent | 0cbe9d79baec7aa3a38dfc9b5db8b5a1eee7b930 (diff) | |
parent | 348706854cd47f3fd104fbc8f5af7595980f5084 (diff) | |
download | nextcloud-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.php | 6 |
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); } |