diff --git a/lib/Storage/DirMask.php b/lib/Storage/DirMask.php index 4e43c060..113ca50b 100644 --- a/lib/Storage/DirMask.php +++ b/lib/Storage/DirMask.php @@ -137,7 +137,8 @@ public function touch($path, $mtime = null): bool { } public function mkdir($path): bool { - if ($this->checkPath($path)) { + // Always allow creating the path of the dir mask. + if ($path !== $this->path && $this->checkPath($path)) { return parent::mkdir($path); } else { return $this->storage->mkdir($path);