Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove rescanDelay from directory mtime
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot[bot] committed Jun 25, 2020
commit 737b65894ba52744f4bf093d17638443c73e55d8
7 changes: 1 addition & 6 deletions apps/files_external/lib/Lib/Storage/AmazonS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ public function needsPartFile() {
return false;
}

/**
* @var int in seconds
*/
private $rescanDelay = 10;

/** @var CappedMemoryCache|Result[] */
private $objectCache;

Expand Down Expand Up @@ -378,7 +373,7 @@ public function stat($path) {
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));
Expand Down