use new parent_path

This commit is contained in:
Peter Bieringer
2026-02-22 12:34:59 +01:00
parent 258426561d
commit 37d0bfd227

View File

@@ -66,8 +66,7 @@ class ApplicationPartMkcol(ApplicationBase):
item = next(iter(self._storage.discover(path)), None) item = next(iter(self._storage.discover(path)), None)
if item: if item:
return httputils.METHOD_NOT_ALLOWED return httputils.METHOD_NOT_ALLOWED
parent_path = pathutils.unstrip_path( parent_path = pathutils.parent_path(path)
posixpath.dirname(pathutils.strip_path(path)), True)
parent_item = next(iter(self._storage.discover(parent_path)), None) parent_item = next(iter(self._storage.discover(parent_path)), None)
if not parent_item: if not parent_item:
return httputils.CONFLICT return httputils.CONFLICT