def ListFiles(self):
    """List all the files in the directory."""
    if self.IsDirectory():
      dir_fd = self.fd.as_directory()
      for f in dir_fd:
        try:
          name = f.info.name.name
          # Drop these useless entries.
          if name in [".", ".."] or name in self.BLACKLIST_FILES:
            continue

          # First we yield a standard response using the default attributes.
          yield self.MakeStatResponse(f, tsk_attribute=None, append_name=name)

          # Now send back additional named attributes for the ADS.
          for attribute in f:
            if attribute.info.type in [pytsk3.TSK_FS_ATTR_TYPE_NTFS_DATA,
                                       pytsk3.TSK_FS_ATTR_TYPE_DEFAULT]:
              if attribute.info.name:
                yield self.MakeStatResponse(f, append_name=name,
                                            tsk_attribute=attribute)
        except __HOLE__:
          pass
    else:
      raise IOError("%s is not a directory" % self.pathspec.CollapsePath())
dataset/ETHPy150Open google/grr/grr/client/vfs_handlers/sleuthkit.py/TSKFile.ListFiles