pyarrow.HadoopFileSystem.ls#

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

Retrieve directory contents and metadata, if requested.

Parameters:
pathstr

HDFS path to retrieve contents of.

detailbool, default False

If False, only return list of paths.

Returns:
resultlist of dicts (detail=True) or strings (detail=False)