Merge pull request #21585 from nextcloud/backport/21530/stable18

[stable18] Remove rescanDelay from directory mtime
This commit is contained in:
Morris Jobke 2020-07-02 23:34:09 +02:00 committed by GitHub
commit 073b702f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,11 +56,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
return false;
}
/**
* @var int in seconds
*/
private $rescanDelay = 10;
/** @var CappedMemoryCache|Result[] */
private $objectCache;
@ -377,7 +372,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));