mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Update comment
This commit is contained in:
parent
6c3e59fd11
commit
07dc71fd73
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,6 @@ class Collection(BaseCollection):
|
||||||
if not attributes[0]:
|
if not attributes[0]:
|
||||||
attributes.pop()
|
attributes.pop()
|
||||||
|
|
||||||
# Try to guess if the path leads to a collection or an item
|
|
||||||
folder = cls._get_collection_root_folder()
|
folder = cls._get_collection_root_folder()
|
||||||
# Create the root collection
|
# Create the root collection
|
||||||
cls._makedirs_synced(folder, exist_ok=True)
|
cls._makedirs_synced(folder, exist_ok=True)
|
||||||
|
@ -443,6 +442,7 @@ class Collection(BaseCollection):
|
||||||
# Path is unsafe
|
# Path is unsafe
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Check if the path exists and if it leads to a collection or an item
|
||||||
if not os.path.isdir(filesystem_path):
|
if not os.path.isdir(filesystem_path):
|
||||||
if attributes and os.path.isfile(filesystem_path):
|
if attributes and os.path.isfile(filesystem_path):
|
||||||
href = attributes.pop()
|
href = attributes.pop()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue