]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check file existance in MappedLocal in hasUpdated()
authorJoas Schilling <nickvergessen@gmx.de>
Thu, 27 Nov 2014 10:41:11 +0000 (11:41 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Thu, 27 Nov 2014 13:59:07 +0000 (14:59 +0100)
Only fixed in Local by eeee9eacea333035e22ef3ed938e36f56bc762cd

lib/private/files/storage/mappedlocal.php

index d749e0e9d5457da574fbe9aac4ab34e013021b19..6745dad77f28d2c3eadf02ae137901e74bf34b58 100644 (file)
@@ -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;
+               }
        }
 
        /**