Check file existance in MappedLocal in hasUpdated()

Only fixed in Local by eeee9eacea
This commit is contained in:
Joas Schilling 2014-11-27 11:41:11 +01:00
parent b886d3d645
commit 1062f4fe44
1 changed files with 5 additions and 1 deletions

View File

@ -337,7 +337,11 @@ class MappedLocal extends \OC\Files\Storage\Common {
* @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;
}
}
/**