'listdir_stats(path, glob=None) -> [ WebHdfsStat ]
Get directory listing with stats.'

def listdir_stats(self, path, glob=None):

    path = Hdfs.normpath(path)
    params = self._getparams()
    if (glob is not None):
        params['filter'] = glob
    params['op'] = 'LISTSTATUS'
    json = self._root.get(path, params)
    filestatus_list = json['FileStatuses']['FileStatus']
    return [WebHdfsStat(st, path) for st in filestatus_list]
