From 97f8738465ded0f1681713fa5e9a9141cbae7002 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 20 Feb 2012 16:32:42 +0100 Subject: [PATCH] Return the collections and the items in collections --- radicale/storage/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/storage/filesystem.py b/radicale/storage/filesystem.py index 2e262c1b..ec57bb23 100644 --- a/radicale/storage/filesystem.py +++ b/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