From 1062f4fe44229ad186df35729487d3d0f6785682 Mon Sep 17 00:00:00 2001
From: Joas Schilling <nickvergessen@gmx.de>
Date: Thu, 27 Nov 2014 11:41:11 +0100
Subject: [PATCH] Check file existance in MappedLocal in hasUpdated()

Only fixed in Local by eeee9eacea333035e22ef3ed938e36f56bc762cd
---
 lib/private/files/storage/mappedlocal.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php
index d749e0e9d5..6745dad77f 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;
+		}
 	}
 
 	/**
-- 
GitLab