Prevent error from cache update on deleted files

remotes/origin/ldap_group_count
Robin McCorkell 2014-04-13 16:17:13 +07:00
parent 869e7a51f0
commit eeee9eacea
1 changed files with 5 additions and 1 deletions

@ -305,7 +305,11 @@ if (\OC_Util::runningOnWindows()) {
* @return bool
*/
public function hasUpdated($path, $time) {
return $this->filemtime($path) > $time;
if ($this->file_exists($path)) {
return $this->filemtime($path) > $time;
} else {
return true;
}
}
/**