]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent error from cache update on deleted files
authorRobin McCorkell <rmccorkell@karoshi.org.uk>
Sun, 13 Apr 2014 15:17:13 +0000 (16:17 +0100)
committerRobin McCorkell <rmccorkell@karoshi.org.uk>
Sun, 13 Apr 2014 15:17:13 +0000 (16:17 +0100)
lib/private/files/storage/local.php

index 571bf7f97c1af3deead5280dc167abd66c4a039f..ff2949d33b6b98e9bac977a688ebdef5b05b6e83 100644 (file)
@@ -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;
+                       }
                }
 
                /**