From ff4a812e7316b3e70c4584868cd9b63ce22a75cf Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Tue, 6 Oct 2026 22:42:29 +0200 Subject: [PATCH] local filesystem adapter file vs directory --- src/WAC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WAC.php b/src/WAC.php index ea46600..4cac9e7 100644 --- a/src/WAC.php +++ b/src/WAC.php @@ -512,7 +512,7 @@ private function getParentUri($uri) { $localPath = str_replace($this->basePath, '', $parentPath); if ($localPath == "/") { return $uri->withPath($parentPath); - } elseif ($this->filesystem->fileExists($localPath)) { + } elseif ($this->filesystem->fileExists($localPath) || $this->filesystem->directoryExists($localPath)) { return $uri->withPath($parentPath); } else { return $this->getParentUri($uri->withPath($parentPath));