Call headObject if file not in filecache 🙈

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/14211/head
Daniel Kesselberg 7 years ago
parent 659ed3ecda
commit 0d667d18bb
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 2
      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 . '/')) {

Loading…
Cancel
Save