mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 10:39:13 -04:00
mark path as checked
This commit is contained in:
parent
c487f0f138
commit
a2cfbd975a
1 changed files with 1 additions and 0 deletions
1
lib/private/files/cache/watcher.php
vendored
1
lib/private/files/cache/watcher.php
vendored
|
|
@ -119,6 +119,7 @@ class Watcher {
|
|||
*/
|
||||
public function needsUpdate($path, $cachedData) {
|
||||
if ($this->watchPolicy === self::CHECK_ALWAYS or ($this->watchPolicy === self::CHECK_ONCE and array_search($path, $this->checkedPaths) === false)) {
|
||||
$this->checkedPaths[] = $path;
|
||||
return $this->storage->hasUpdated($path, $cachedData['storage_mtime']);
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue