diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-02-14 18:34:04 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-19 11:38:15 +0000 |
commit | bc718896571c1f59b67ede30302561caaf68420e (patch) | |
tree | ebf71c5a4f4a6f176a19894167ae441e924570ad /apps/files_external | |
parent | db27cb20afa9a15916f5582666ac1e594cd731cb (diff) | |
download | nextcloud-server-bc718896571c1f59b67ede30302561caaf68420e.tar.gz nextcloud-server-bc718896571c1f59b67ede30302561caaf68420e.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')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 |
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 . '/')) { |