aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-29 16:30:47 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-29 16:30:47 +0100
commit0d7d396d8013d77027d50a6c54350690416d344c (patch)
treee3c787a45c384327f2a3d78f4357ec22df244c00 /lib
parenta80ac9c4923a48a0d180a9ae8651bd84ea94c678 (diff)
downloadnextcloud-server-0d7d396d8013d77027d50a6c54350690416d344c.tar.gz
nextcloud-server-0d7d396d8013d77027d50a6c54350690416d344c.zip
make sure that also the storage etag gets changed
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/updater.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index e711b21e340..48fb3ba6c5c 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -135,10 +135,13 @@ class Updater {
while ($id !== -1) {
$cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath)));
- $realPath = dirname($realPath);
- // check storage for parent in case we change the storage in this step
- list($storage, $internalPath) = $view->resolvePath($realPath);
- if ($internalPath) {
+ if ($realPath !== '') {
+ $realPath = dirname($realPath);
+ if($realPath === '/') {
+ $realPath = "";
+ }
+ // check storage for parent in case we change the storage in this step
+ list($storage, $internalPath) = $view->resolvePath($realPath);
$cache = $storage->getCache();
$id = $cache->getId($internalPath);
} else {