public function newFolder($path) {
        if ($this->checkPermissions(\OCP\Constants::PERMISSION_CREATE)) {
            $fullPath = $this->getFullPath($path);
            $nonExisting = new NonExistingFolder($this->root, $this->view, $fullPath);
            $this->root->emit('\OC\Files', 'preWrite', [$nonExisting]);