diff --git a/AwsS3V3Adapter.php b/AwsS3V3Adapter.php
index <HASH>..<HASH> 100644
--- a/AwsS3V3Adapter.php
+++ b/AwsS3V3Adapter.php
@@ -255,7 +255,8 @@ class AwsS3V3Adapter implements FilesystemAdapter
 
     public function createDirectory(string $path, Config $config): void
     {
-        $config = $config->withDefaults(['visibility' => $this->visibility->defaultForDirectories()]);
+        $defaultVisibility = $config->get('directory_visibility', $this->visibility->defaultForDirectories());
+        $config = $config->withDefaults(['visibility' => $defaultVisibility]);
         $this->upload(rtrim($path, '/') . '/', '', $config);
     }
Prefer directory_visibility over visibility when using a create_directory call [AWS]