pyarrow.HadoopFileSystem.ls

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

Retrieve directory contents and metadata, if requested.

Parameters
  • path (str) – HDFS path to retrieve contents of.

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

Returns

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