summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-06-13 00:09:52 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-06-13 00:09:52 +0200
commit84a8aea410053686678f8efa6ba00ac63d31133e (patch)
tree15031670833831a3f0af7077344e3fd8a056a223 /lib/files
parent2a3887a5d75b0b81344af04e02d5958cf438717d (diff)
downloadnextcloud-server-84a8aea410053686678f8efa6ba00ac63d31133e.tar.gz
nextcloud-server-84a8aea410053686678f8efa6ba00ac63d31133e.zip
restore Updater functionality on non-Windows platforms
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/updater.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/files/cache/updater.php b/lib/files/cache/updater.php
index de74f1634e2..6fee0d58454 100644
--- a/lib/files/cache/updater.php
+++ b/lib/files/cache/updater.php
@@ -41,7 +41,7 @@ class Updater {
$scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
$cache->correctFolderSize($internalPath);
- self::correctFolder($internalPath, $storage->filemtime($internalPath));
+ self::correctFolder($path, $storage->filemtime($internalPath));
}
}
@@ -60,7 +60,7 @@ class Updater {
$cache = $storage->getCache($internalPath);
$cache->remove($internalPath);
$cache->correctFolderSize($internalPath);
- self::correctFolder($internalPath, time());
+ self::correctFolder($path, time());
}
}
@@ -85,8 +85,8 @@ class Updater {
$cache->move($internalFrom, $internalTo);
$cache->correctFolderSize($internalFrom);
$cache->correctFolderSize($internalTo);
- self::correctFolder($internalFrom, time());
- self::correctFolder($internalTo, time());
+ self::correctFolder($from, time());
+ self::correctFolder($to, time());
} else {
self::deleteUpdate($from);
self::writeUpdate($to);