summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-13 16:17:13 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-13 16:17:13 +0100
commiteeee9eacea333035e22ef3ed938e36f56bc762cd (patch)
tree443806a962fd5fd1d9dc039ca4ef5278b5286a1f
parent869e7a51f0ed5b24c1ee0714112edb71e7dd1b62 (diff)
downloadnextcloud-server-eeee9eacea333035e22ef3ed938e36f56bc762cd.tar.gz
nextcloud-server-eeee9eacea333035e22ef3ed938e36f56bc762cd.zip
Prevent error from cache update on deleted files
-rw-r--r--lib/private/files/storage/local.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index 571bf7f97c1..ff2949d33b6 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -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;
+ }
}
/**