From 07dc71fd73228ea327bb36c275516782663dfcf4 Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 5 Aug 2016 17:22:21 +0200 Subject: [PATCH] Update comment --- radicale/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/storage.py b/radicale/storage.py index cab6641..34e7a90 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -433,7 +433,6 @@ class Collection(BaseCollection): if not attributes[0]: attributes.pop() - # Try to guess if the path leads to a collection or an item folder = cls._get_collection_root_folder() # Create the root collection cls._makedirs_synced(folder, exist_ok=True) @@ -443,6 +442,7 @@ class Collection(BaseCollection): # Path is unsafe return + # Check if the path exists and if it leads to a collection or an item if not os.path.isdir(filesystem_path): if attributes and os.path.isfile(filesystem_path): href = attributes.pop()