Beispiel #1
0
 def paths(self):
     """Generate all paths for this collection."""
     for type, item in self.items:
         if type == "path":
             yield item
         elif type == "file":
             path = _local_path_from_url(item.url)
             if path is not None:
                 yield path
         elif type == "container":
             container = UnwrapObject(item)
             for path in container.genLocalPaths():
                 yield path