mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
restore Updater functionality on non-Windows platforms
This commit is contained in:
parent
2a3887a5d7
commit
84a8aea410
1 changed files with 4 additions and 4 deletions
8
lib/files/cache/updater.php
vendored
8
lib/files/cache/updater.php
vendored
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue