Merge pull request #14211 from nextcloud/bugfix/prefix-path-to-filecache-s3
Prefix $path for filename for internal file cache
This commit is contained in:
commit
7fc68fe93e
1 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
$files[] = $file;
|
||||
|
||||
// store this information for later usage
|
||||
$this->filesCache[$file] = [
|
||||
$this->filesCache[$path . $file] = [
|
||||
'ContentLength' => $object['Size'],
|
||||
'LastModified' => (string)$object['LastModified'],
|
||||
];
|
||||
|
@ -408,7 +408,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
try {
|
||||
if ($this->headObject($path)) {
|
||||
if (isset($this->filesCache[$path]) || $this->headObject($path)) {
|
||||
return 'file';
|
||||
}
|
||||
if ($this->headObject($path . '/')) {
|
||||
|
|
Loading…
Reference in a new issue