diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-02-14 17:06:14 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-19 11:38:14 +0000 |
commit | db27cb20afa9a15916f5582666ac1e594cd731cb (patch) | |
tree | fad4ced808847e930594ba002ab4896b63f99e65 /apps/files_external | |
parent | a2cddf259ce3a936c719d23b8939c73e2ec2f8e4 (diff) | |
download | nextcloud-server-db27cb20afa9a15916f5582666ac1e594cd731cb.tar.gz nextcloud-server-db27cb20afa9a15916f5582666ac1e594cd731cb.zip |
Prefix $path for filename for internal file cache
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 9d2e0c91099..6e381d5f15c 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -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 . '/')) { |