mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Fix the test used to guess if a path is a collection
This commit is contained in:
parent
4ad1fb4982
commit
205600c2d1
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class Collection(object):
|
|||
return []
|
||||
|
||||
# Try to guess if the path leads to a collection or an item
|
||||
if not (cls.is_leaf("/".join(attributes)) or
|
||||
if (cls.is_leaf("/".join(attributes[:-1])) or not
|
||||
path.endswith(("/", ".ics", ".vcf", "/caldav", "/carddav"))):
|
||||
attributes.pop()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue