Skip to content

Commit 0ad04dc

Browse files
committed
#AC-10721::Investigate the league/flysystem Composer dependencies upgrading to latest version- fixes for mftf failures
1 parent 62c5da6 commit 0ad04dc

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
@@ -503,7 +503,11 @@ private function isTypeDirectory($path)
503503
private function directoryExists(string $path): bool
504504
{
505505
try {
506-
return $this->adapter->fileExists($path);
506+
if($this->isTypeDirectory($path)) {
507+
return $this->adapter->directoryExists($path);
508+
} else {
509+
return $this->adapter->fileExists($path);
510+
}
507511
} catch (Throwable $e) {
508512
// catch closed iterator
509513
return false;

0 commit comments

Comments
 (0)