summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-14 18:34:04 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-02-14 18:34:04 +0100
commit0d667d18bb9d76e8ffad48b270545dde76fc156e (patch)
tree07b2f38d4c45c515ce04749ef9e1fdc370fd084e /apps/files_external/lib/Lib
parent659ed3ecda733d53414528124014d5060fcb652e (diff)
downloadnextcloud-server-0d667d18bb9d76e8ffad48b270545dde76fc156e.tar.gz
nextcloud-server-0d667d18bb9d76e8ffad48b270545dde76fc156e.zip
Call headObject if file not in filecache :see_no_evil:
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 6e381d5f15c..ea7ca42dfef 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -408,7 +408,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
}
try {
- if (isset($this->filesCache[$path]) && $this->headObject($path)) {
+ if (isset($this->filesCache[$path]) || $this->headObject($path)) {
return 'file';
}
if ($this->headObject($path . '/')) {