Prevent error from cache update on deleted files
This commit is contained in:
parent
869e7a51f0
commit
eeee9eacea
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue