diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-04-13 16:17:13 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-04-13 16:17:13 +0100 |
commit | eeee9eacea333035e22ef3ed938e36f56bc762cd (patch) | |
tree | 443806a962fd5fd1d9dc039ca4ef5278b5286a1f | |
parent | 869e7a51f0ed5b24c1ee0714112edb71e7dd1b62 (diff) | |
download | nextcloud-server-eeee9eacea333035e22ef3ed938e36f56bc762cd.tar.gz nextcloud-server-eeee9eacea333035e22ef3ed938e36f56bc762cd.zip |
Prevent error from cache update on deleted files
-rw-r--r-- | lib/private/files/storage/local.php | 6 |
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; + } } /** |