Merge pull request #21530 from nextcloud/bugfix/noid/s3-dir-mtime

Remove rescanDelay from directory mtime
This commit is contained in:
Roeland Jago Douma 2020-06-24 13:42:52 +02:00 committed by GitHub
commit e367a3ac1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View 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));