def loadChildren(self): for f in os.listdir(self.path): if os.path.isdir(os.path.join(self.path, f)): self.resource.putChild(f, static.File(self.path + f))