mark path as checked

This commit is contained in:
Robin Appelman 2015-11-04 16:34:39 +01:00
parent c487f0f138
commit a2cfbd975a

View file

@ -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;