summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-27 11:41:11 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-27 14:59:07 +0100
commit1062f4fe44229ad186df35729487d3d0f6785682 (patch)
treecc7a4ee960950127dd03bcaab152dd8df797c882 /lib
parentb886d3d645eef8f40c38daebd250b56ae035f37a (diff)
downloadnextcloud-server-1062f4fe44229ad186df35729487d3d0f6785682.tar.gz
nextcloud-server-1062f4fe44229ad186df35729487d3d0f6785682.zip
Check file existance in MappedLocal in hasUpdated()
Only fixed in Local by eeee9eacea333035e22ef3ed938e36f56bc762cd
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/mappedlocal.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php
index d749e0e9d54..6745dad77f2 100644
--- a/lib/private/files/storage/mappedlocal.php
+++ b/lib/private/files/storage/mappedlocal.php
@@ -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;
+ }
}
/**