瀏覽代碼

Ignore .props files for collections children

Guillaume Ayoub 14 年之前
父節點
當前提交
fd3eacfe01
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      radicale/ical.py

+ 4 - 3
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