We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d123fd + eec6816 commit 620669dCopy full SHA for 620669d
lib/private/Files/Node/Folder.php
@@ -158,7 +158,7 @@ public function newFolder($path) {
158
$fullPath = $this->getFullPath($path);
159
$nonExisting = new NonExistingFolder($this->root, $this->view, $fullPath);
160
$this->sendHooks(['preWrite', 'preCreate'], [$nonExisting]);
161
- if (!$this->view->mkdir($fullPath)) {
+ if (!$this->view->mkdir($fullPath) && !$this->view->is_dir($fullPath)) {
162
throw new NotPermittedException('Could not create folder "' . $fullPath . '"');
163
}
164
$parent = dirname($fullPath) === $this->getPath() ? $this : null;
0 commit comments