From fd3eacfe01d29e9163b49c25144f3df7c9a0e4e8 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 5 Jan 2012 22:56:37 +0100 Subject: [PATCH] Ignore .props files for collections children --- radicale/ical.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/radicale/ical.py b/radicale/ical.py index 9030b3e8..de14a495 100644 --- a/radicale/ical.py +++ b/radicale/ical.py @@ -230,9 +230,10 @@ class Collection(object): result.append(cls(path, principal)) try: for filename in next(os.walk(abs_path))[2]: - collection = cls(os.path.join(path, filename)) - if collection.exists: - result.append(collection) + if not filename.endswith(".props"): + collection = cls(os.path.join(path, filename)) + if collection.exists: + result.append(collection) except StopIteration: # Directory does not exist yet pass