use new parent_path
This commit is contained in:
@@ -97,8 +97,7 @@ class ApplicationPartMove(ApplicationBase):
|
|||||||
to_item = next(iter(self._storage.discover(to_path)), None)
|
to_item = next(iter(self._storage.discover(to_path)), None)
|
||||||
if isinstance(to_item, storage.BaseCollection):
|
if isinstance(to_item, storage.BaseCollection):
|
||||||
return httputils.FORBIDDEN
|
return httputils.FORBIDDEN
|
||||||
to_parent_path = pathutils.unstrip_path(
|
to_parent_path = pathutils.parent_path(to_path)
|
||||||
posixpath.dirname(pathutils.strip_path(to_path)), True)
|
|
||||||
to_collection = next(iter(
|
to_collection = next(iter(
|
||||||
self._storage.discover(to_parent_path)), None)
|
self._storage.discover(to_parent_path)), None)
|
||||||
if not to_collection:
|
if not to_collection:
|
||||||
|
|||||||
Reference in New Issue
Block a user