Remove rescanDelay from directory mtime
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
8a0185d29b
commit
737b65894b
|
@ -57,11 +57,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int in seconds
|
|
||||||
*/
|
|
||||||
private $rescanDelay = 10;
|
|
||||||
|
|
||||||
/** @var CappedMemoryCache|Result[] */
|
/** @var CappedMemoryCache|Result[] */
|
||||||
private $objectCache;
|
private $objectCache;
|
||||||
|
|
||||||
|
@ -378,7 +373,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
||||||
if ($this->is_dir($path)) {
|
if ($this->is_dir($path)) {
|
||||||
//folders don't really exist
|
//folders don't really exist
|
||||||
$stat['size'] = -1; //unknown
|
$stat['size'] = -1; //unknown
|
||||||
$stat['mtime'] = time() - $this->rescanDelay * 1000;
|
$stat['mtime'] = time();
|
||||||
} else {
|
} else {
|
||||||
$stat['size'] = $this->getContentLength($path);
|
$stat['size'] = $this->getContentLength($path);
|
||||||
$stat['mtime'] = strtotime($this->getLastModified($path));
|
$stat['mtime'] = strtotime($this->getLastModified($path));
|
||||||
|
|
Loading…
Reference in New Issue