diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-06-24 13:42:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 13:42:52 +0200 |
commit | e367a3ac1bc5d27274407553633ba87838a0f724 (patch) | |
tree | 32c2d4b12c2e963e1e109d9e9160eb0479ed00f9 /apps | |
parent | 50b1568d48efddc315e503c6a2c3ffe485db7658 (diff) | |
parent | 69f4c5003286557d69bdfe8df886491467f3387f (diff) | |
download | nextcloud-server-e367a3ac1bc5d27274407553633ba87838a0f724.tar.gz nextcloud-server-e367a3ac1bc5d27274407553633ba87838a0f724.zip |
Merge pull request #21530 from nextcloud/bugfix/noid/s3-dir-mtime
Remove rescanDelay from directory mtime
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 0fb520cf9d4..641a26b20ee 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)); |