use new parent_path

This commit is contained in:
Peter Bieringer
2026-02-22 12:38:37 +01:00
parent fb058ea112
commit b86c460ba1

View File

@@ -97,8 +97,7 @@ class ApplicationPartMove(ApplicationBase):
to_item = next(iter(self._storage.discover(to_path)), None)
if isinstance(to_item, storage.BaseCollection):
return httputils.FORBIDDEN
to_parent_path = pathutils.unstrip_path(
posixpath.dirname(pathutils.strip_path(to_path)), True)
to_parent_path = pathutils.parent_path(to_path)
to_collection = next(iter(
self._storage.discover(to_parent_path)), None)
if not to_collection: