Skip to content
Snippets Groups Projects
Commit aea8b0ff authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Merge branch 'filesystem' into filesystem-etags

Conflicts:
	lib/files/cache/updater.php
parents 29b82ccd 3ee3323b
Branches
No related tags found
No related merge requests found
......@@ -30,12 +30,14 @@ class Updater {
* @var string $internalPath
*/
list($storage, $internalPath) = self::resolvePath($path);
$cache = new Cache($storage);
$scanner = new Scanner($storage);
if ($storage) {
$cache = $storage->getCache();
$scanner = $storage->getScanner();
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
$cache->correctFolderSize($internalPath);
self::eTagUpdate($path);
}
}
static public function deleteUpdate($path) {
/**
......@@ -43,11 +45,13 @@ class Updater {
* @var string $internalPath
*/
list($storage, $internalPath) = self::resolvePath($path);
$cache = new Cache($storage);
if ($storage) {
$cache = $storage->getCache();
$cache->remove($internalPath);
$cache->correctFolderSize($internalPath);
self::eTagUpdate($path);
}
}
static public function eTagUpdate($path) {
if ($path !== '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment