]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove rescanDelay from directory mtime 21530/head
authorJulius Härtl <jus@bitgrid.net>
Mon, 22 Jun 2020 12:15:42 +0000 (14:15 +0200)
committerJulius Härtl <jus@bitgrid.net>
Mon, 22 Jun 2020 12:15:57 +0000 (14:15 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files_external/lib/Lib/Storage/AmazonS3.php

index 0fb520cf9d457f8aa760da08899400ff09c13ad5..641a26b20eef956778cd8756b8790110116c0493 100644 (file)
@@ -57,11 +57,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
                return false;
        }
 
-       /**
-        * @var int in seconds
-        */
-       private $rescanDelay = 10;
-
        /** @var CappedMemoryCache|Result[] */
        private $objectCache;
 
@@ -378,7 +373,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
                        if ($this->is_dir($path)) {
                                //folders don't really exist
                                $stat['size'] = -1; //unknown
-                               $stat['mtime'] = time() - $this->rescanDelay * 1000;
+                               $stat['mtime'] = time();
                        } else {
                                $stat['size'] = $this->getContentLength($path);
                                $stat['mtime'] = strtotime($this->getLastModified($path));