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 5656185 + e2fffcd commit 97b9e8fCopy full SHA for 97b9e8f
1 file changed
lib/private/Files/Node/Folder.php
@@ -190,6 +190,9 @@ public function newFolder($path) {
190
* @throws \OCP\Files\NotPermittedException
191
*/
192
public function newFile($path, $content = null) {
193
+ if (empty($path)) {
194
+ throw new NotPermittedException('Could not create as provided path is empty');
195
+ }
196
if ($this->checkPermissions(\OCP\Constants::PERMISSION_CREATE)) {
197
$fullPath = $this->getFullPath($path);
198
$nonExisting = new NonExistingFile($this->root, $this->view, $fullPath);
0 commit comments