summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-06-10 18:35:47 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-06-10 18:35:47 +0200
commit073306eaa291435a84c86dfeefe8ec4597711b69 (patch)
tree85048771f1d3e8625538b9fa618d495fefa443d8 /lib/files
parent988b539dd7d1fef93219f44852208f49d928e67f (diff)
downloadnextcloud-server-073306eaa291435a84c86dfeefe8ec4597711b69.tar.gz
nextcloud-server-073306eaa291435a84c86dfeefe8ec4597711b69.zip
[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. error logging has been added in case the given 4path is not found within self::correctFolder
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/updater.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/files/cache/updater.php b/lib/files/cache/updater.php
index 417a47f3830..bf86596dfb3 100644
--- a/lib/files/cache/updater.php
+++ b/lib/files/cache/updater.php
@@ -7,6 +7,7 @@
*/
namespace OC\Files\Cache;
+use OCP\Util;
/**
* listen to filesystem hooks and change the cache accordingly
@@ -40,7 +41,7 @@ class Updater {
$scanner = $storage->getScanner($internalPath);
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
$cache->correctFolderSize($internalPath);
- self::correctFolder($path, $storage->filemtime($internalPath));
+ self::correctFolder($internalPath, $storage->filemtime($internalPath));
}
}
@@ -116,6 +117,8 @@ class Updater {
if ($id !== -1) {
$cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath)));
self::correctFolder($parent, $time);
+ } else {
+ Util::writeLog('core', 'Path not in cache: '.$internalPath, Util::ERROR);
}
}
}