Skip to content

Commit a5ae492

Browse files
committed
Merge branch 'AC10721' of https://github.com/magento-gl/magento2ce into AC10721
2 parents 62ee540 + 0ad04dc commit a5ae492

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/AwsS3/Driver/AwsS3.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@ private function isTypeDirectory($path)
509509
private function directoryExists(string $path): bool
510510
{
511511
try {
512-
return $this->adapter->fileExists($path);
512+
if($this->isTypeDirectory($path)) {
513+
return $this->adapter->directoryExists($path);
514+
} else {
515+
return $this->adapter->fileExists($path);
516+
}
513517
} catch (Throwable $e) {
514518
// catch closed iterator
515519
return false;

0 commit comments

Comments
 (0)