in azure/datalake/store/core.py [0:0]
def _ls(self, path, invalidate_cache=True, batch_size=4000):
""" List files at given path """
path = AzureDLPath(path).trim()
key = path.as_posix()
if invalidate_cache:
self.invalidate_cache(key)
if key not in self.dirs:
self.dirs[key] = self._ls_batched(key, batch_size=batch_size)
for f in self.dirs[key]:
f['name'] = (path / f['pathSuffix']).as_posix()
return self.dirs[key]