summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-28 13:17:19 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-28 13:31:08 +0100
commiteaedda2116ddde4b0a571ccdf96437eea37fe380 (patch)
tree84fab876b368dd5f947f22dcb6fb80083207a850 /lib
parenta1d2f0f51605b6c4b2a204e6650c683881052a1a (diff)
downloadnextcloud-server-eaedda2116ddde4b0a571ccdf96437eea37fe380.tar.gz
nextcloud-server-eaedda2116ddde4b0a571ccdf96437eea37fe380.zip
make sure that we don't try to access an already deleted files, fixes some file source not found warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/updater.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index d45c5e17fc8..9c182c3c3c1 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -59,10 +59,14 @@ 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);
- self::correctFolder($path, time());
+ $cache->correctFolderSize($parent);
+ self::correctFolder($parent, time());
self::correctParentStorageMtime($storage, $internalPath);
}
}