From 737b65894ba52744f4bf093d17638443c73e55d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 22 Jun 2020 14:15:42 +0200 Subject: [PATCH] Remove rescanDelay from directory mtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 0fb520cf9d..641a26b20e 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -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));