class_docstr: DEPRECATED: FileSystem interface for HDFS cluster.
  
  See pyarrow.hdfs.connect for full connection details
  
  .. deprecated:: 2.0
      ``pyarrow.hdfs.HadoopFileSystem`` is deprecated,
      please use ``pyarrow.fs.HadoopFileSystem`` instead.
class_docstr_tok: ["DEPRECATED",":","FileSystem","interface","for","HDFS","cluster",".","See","pyarrow.hdfs.connect","for","full","connection","details","..","deprecated",":",":","2.0","``","pyarrow.hdfs.HadoopFileSystem","``","is","deprecated",",","please","use","``","pyarrow.fs.HadoopFileSystem","``","instead","."]
docstr: 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)
docstr_tok: ["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",")"]
code: def ls(self, path, detail=False):
      """
      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)
      """
      return super().ls(path, detail)
  
imports: import os
  import posixpath
  import sys
  import warnings
  from pyarrow.util import doc, _DEPR_MSG
  from pyarrow.filesystem import FileSystem
  import pyarrow._hdfsio
label_desc: Use image node_id 10 for calling the HadoopFileSystem obj's underlying member method code with example usage: obj.ls(path, detail) and returns: super