소스 검색

Return the collections and the items in collections

Guillaume Ayoub 14 년 전
부모
커밋
97f8738465
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      radicale/storage/filesystem.py

+ 1 - 1
radicale/storage/filesystem.py

@@ -80,7 +80,7 @@ class Collection(ical.Collection):
         abs_path = os.path.join(FOLDER, rel_path)
         for filename in next(os.walk(abs_path))[2]:
             rel_filename = os.path.join(rel_path, filename)
-            if cls.is_collection(rel_filename):
+            if cls.is_collection(rel_filename) or cls.is_item(rel_filename):
                 yield cls(rel_filename)
 
     @classmethod