Explorar o código

Ignore .props files for collections children

Guillaume Ayoub %!s(int64=14) %!d(string=hai) anos
pai
achega
fd3eacfe01
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  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