We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c5da6 commit 0ad04dcCopy full SHA for 0ad04dc
app/code/Magento/AwsS3/Driver/AwsS3.php
@@ -503,7 +503,11 @@ private function isTypeDirectory($path)
503
private function directoryExists(string $path): bool
504
{
505
try {
506
- return $this->adapter->fileExists($path);
+ if($this->isTypeDirectory($path)) {
507
+ return $this->adapter->directoryExists($path);
508
+ } else {
509
+ return $this->adapter->fileExists($path);
510
+ }
511
} catch (Throwable $e) {
512
// catch closed iterator
513
return false;
0 commit comments