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.
2 parents 62ee540 + 0ad04dc commit a5ae492Copy full SHA for a5ae492
app/code/Magento/AwsS3/Driver/AwsS3.php
@@ -509,7 +509,11 @@ private function isTypeDirectory($path)
509
private function directoryExists(string $path): bool
510
{
511
try {
512
- return $this->adapter->fileExists($path);
+ if($this->isTypeDirectory($path)) {
513
+ return $this->adapter->directoryExists($path);
514
+ } else {
515
+ return $this->adapter->fileExists($path);
516
+ }
517
} catch (Throwable $e) {
518
// catch closed iterator
519
return false;
0 commit comments