pyarrow.HadoopFileSystem.ls

HadoopFileSystem.ls(path, detail=False)[source]

Retrieve directory contents and metadata, if requested.

Parameters
  • path (HDFS path) –

  • detail (boolean, default False) – If False, only return list of paths

Returns

result (list of dicts (detail=True) or strings (detail=False))