Explorar o código

Set correct path for child collections

Unrud %!s(int64=9) %!d(string=hai) anos
pai
achega
cfa8c7d8b4
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      radicale/storage.py

+ 2 - 1
radicale/storage.py

@@ -497,8 +497,9 @@ class Collection(BaseCollection):
                 continue
             child_filesystem_path = path_to_filesystem(filesystem_path, href)
             if os.path.isdir(child_filesystem_path):
+                child_path = posixpath.join(path, href)
                 child_principal = len(attributes) == 0
-                yield cls(child_filesystem_path, child_principal)
+                yield cls(child_path, child_principal)
 
     @classmethod
     def create_collection(cls, href, collection=None, props=None):