Skip to content

Commit 9191651

Browse files
committed
Fix #1554: strip prefix before checking directory existence.
1 parent b7bb46d commit 9191651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebDAV/WebDAVAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function createDirectory(string $path, Config $config): void
221221
$directoryPath = implode('/', $directoryParts);
222222
$location = $this->encodePath($directoryPath);
223223

224-
if ($this->directoryExists($directoryPath)) {
224+
if ($this->directoryExists($this->prefixer->stripDirectoryPrefix($directoryPath))) {
225225
continue;
226226
}
227227

0 commit comments

Comments
 (0)