use new parent_path
This commit is contained in:
@@ -62,8 +62,7 @@ class ApplicationPartMkcalendar(ApplicationBase):
|
|||||||
if item:
|
if item:
|
||||||
return self._webdav_error_response(
|
return self._webdav_error_response(
|
||||||
client.CONFLICT, "D:resource-must-be-null")
|
client.CONFLICT, "D:resource-must-be-null")
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user