From: Thomas Mueller Date: Mon, 10 Jun 2013 16:47:36 +0000 (+0200) Subject: [Fixing Updater Unit Tests on Windows] X-Git-Tag: v6.0.0alpha2~615^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0b25a43752427df90c4a2e6564e8325d12ee4f4;p=nextcloud-server.git [Fixing Updater Unit Tests on Windows] using $internalPath within call to self::correctFolder() because $path inside of it is not processed properly due to directory separator on Windows. --- diff --git a/lib/files/cache/updater.php b/lib/files/cache/updater.php index bf86596dfb3..de74f1634e2 100644 --- a/lib/files/cache/updater.php +++ b/lib/files/cache/updater.php @@ -60,7 +60,7 @@ class Updater { $cache = $storage->getCache($internalPath); $cache->remove($internalPath); $cache->correctFolderSize($internalPath); - self::correctFolder($path, time()); + self::correctFolder($internalPath, time()); } } @@ -85,8 +85,8 @@ class Updater { $cache->move($internalFrom, $internalTo); $cache->correctFolderSize($internalFrom); $cache->correctFolderSize($internalTo); - self::correctFolder($from, time()); - self::correctFolder($to, time()); + self::correctFolder($internalFrom, time()); + self::correctFolder($internalTo, time()); } else { self::deleteUpdate($from); self::writeUpdate($to);