Skip to content

Commit 620669d

Browse files
authored
Merge pull request #45590 from nextcloud/backport/45413/stable29
2 parents 4d123fd + eec6816 commit 620669d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Node/Folder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function newFolder($path) {
158158
$fullPath = $this->getFullPath($path);
159159
$nonExisting = new NonExistingFolder($this->root, $this->view, $fullPath);
160160
$this->sendHooks(['preWrite', 'preCreate'], [$nonExisting]);
161-
if (!$this->view->mkdir($fullPath)) {
161+
if (!$this->view->mkdir($fullPath) && !$this->view->is_dir($fullPath)) {
162162
throw new NotPermittedException('Could not create folder "' . $fullPath . '"');
163163
}
164164
$parent = dirname($fullPath) === $this->getPath() ? $this : null;

0 commit comments

Comments
 (0)