Unrud преди 9 години
родител
ревизия
07dc71fd73
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      radicale/storage.py

+ 1 - 1
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()