def unstructured_map(self, path):
        depth = self.depth
        if self.depth == 0:
            return {path: basename(path)}
        else:
            while depth > 0:
                path = dirname(path)
                depth -= 1
            return dict([(join(path, f), f) for f in directory_files(path)])
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/client/action_mapper.py/FileLister.unstructured_map/original