Call headObject if file not in filecache 🙈
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
db27cb20af
commit
bc71889657
|
@ -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…
Reference in New Issue