From 205600c2d15e98d9a0dc0b8200ddb6d6de4e5099 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 24 Aug 2013 01:26:06 +0200 Subject: [PATCH] Fix the test used to guess if a path is a collection --- radicale/ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/ical.py b/radicale/ical.py index 5c5ebdf..d32d37a 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -214,7 +214,7 @@ class Collection(object): return [] # Try to guess if the path leads to a collection or an item - if not (cls.is_leaf("/".join(attributes)) or + if (cls.is_leaf("/".join(attributes[:-1])) or not path.endswith(("/", ".ics", ".vcf", "/caldav", "/carddav"))): attributes.pop()