mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-22 19:20:54 +00:00
Return the collections and the items in collections
This commit is contained in:
parent
d256a0551c
commit
97f8738465
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class Collection(ical.Collection):
|
||||||
abs_path = os.path.join(FOLDER, rel_path)
|
abs_path = os.path.join(FOLDER, rel_path)
|
||||||
for filename in next(os.walk(abs_path))[2]:
|
for filename in next(os.walk(abs_path))[2]:
|
||||||
rel_filename = os.path.join(rel_path, filename)
|
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)
|
yield cls(rel_filename)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue