Commit eeee9eac authored by Robin McCorkell's avatar Robin McCorkell
Browse files

Prevent error from cache update on deleted files

parent 869e7a51
...@@ -305,7 +305,11 @@ if (\OC_Util::runningOnWindows()) { ...@@ -305,7 +305,11 @@ if (\OC_Util::runningOnWindows()) {
* @return bool * @return bool
*/ */
public function hasUpdated($path, $time) { public function hasUpdated($path, $time) {
return $this->filemtime($path) > $time; if ($this->file_exists($path)) {
return $this->filemtime($path) > $time;
} else {
return true;
}
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment