def _run_list(self, prefix):
        if prefix in self.memoized_queries:
            return self.memoized_queries[prefix]

        try:
            ret = self.client.list_dir(prefix)['FileStatuses']['FileStatus']
        except pywebhdfs.errors.FileNotFound:
            return []

        self.memoized_queries[prefix] = ret
        for fileinfo in ret:
            # If we're listing, say, a directory called foo/ that contains a
            # file called bar, fileinfo will only contain a key called
            # 'pathSuffix' with the value 'bar'.  We thus add a key that
            # contains the full path.
            fileinfo['path'] = os.path.join(prefix, fileinfo['pathSuffix'])
            self.saved_fileinfo[fileinfo['path']] = fileinfo
        return ret
Runs a list query. Uses memoized_queries where possible
dataset/ETHPy150Open memsql/memsql-loader/memsql_loader/vendor/glob2/impl.py/HDFSGlobber._run_list