mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Remove rescanDelay from directory mtime
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3bd4447b3f
commit
b0a8781cef
1 changed files with 1 additions and 6 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue