1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Small cosmetic improvements

This commit is contained in:
Unrud 2017-08-14 18:16:45 +02:00
parent 86631e4ddd
commit f87c16a42b
2 changed files with 3 additions and 6 deletions

View file

@ -810,9 +810,7 @@ class Collection(BaseCollection):
def discover(cls, path, depth="0"):
# Path should already be sanitized
sane_path = sanitize_path(path).strip("/")
attributes = sane_path.split("/")
if not attributes[0]:
attributes.pop()
attributes = sane_path.split("/") if sane_path else []
folder = cls._get_collection_root_folder()
# Create the root collection