Skip to content

Commit 79b3923

Browse files
authored
Merge pull request #21584 from nextcloud/backport/21530/stable19
[stable19] Remove rescanDelay from directory mtime
2 parents 0db25f2 + 737b658 commit 79b3923

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apps/files_external/lib/Lib/Storage/AmazonS3.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ public function needsPartFile() {
5757
return false;
5858
}
5959

60-
/**
61-
* @var int in seconds
62-
*/
63-
private $rescanDelay = 10;
64-
6560
/** @var CappedMemoryCache|Result[] */
6661
private $objectCache;
6762

@@ -378,7 +373,7 @@ public function stat($path) {
378373
if ($this->is_dir($path)) {
379374
//folders don't really exist
380375
$stat['size'] = -1; //unknown
381-
$stat['mtime'] = time() - $this->rescanDelay * 1000;
376+
$stat['mtime'] = time();
382377
} else {
383378
$stat['size'] = $this->getContentLength($path);
384379
$stat['mtime'] = strtotime($this->getLastModified($path));

0 commit comments

Comments
 (0)