diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-02-14 18:34:04 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-02-14 18:34:04 +0100 |
commit | 0d667d18bb9d76e8ffad48b270545dde76fc156e (patch) | |
tree | 07b2f38d4c45c515ce04749ef9e1fdc370fd084e /apps/files_external/lib/Lib | |
parent | 659ed3ecda733d53414528124014d5060fcb652e (diff) | |
download | nextcloud-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.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 . '/')) { |