From 40581f2b24363568e0a140c6610a12b7211aa86f Mon Sep 17 00:00:00 2001
From: Frank de Jonge <info@frankdejonge.nl>
Date: Sat, 18 Nov 2023 21:47:27 +0100
Subject: [PATCH] Prevent double root dir checking when using lazy root
 directory creation for the local filesystem.

---
 src/Local/LocalFilesystemAdapter.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Local/LocalFilesystemAdapter.php b/src/Local/LocalFilesystemAdapter.php
index 59720f37d..cead55ec3 100644
--- a/src/Local/LocalFilesystemAdapter.php
+++ b/src/Local/LocalFilesystemAdapter.php
@@ -95,6 +95,7 @@ private function ensureRootDirectoryExists(): void
         }
 
         $this->ensureDirectoryExists($this->rootLocation, $this->visibility->defaultForDirectories());
+        $this->rootLocationIsSetup = true;
     }
 
     public function write(string $path, string $contents, Config $config): void