'List all the files in the directory.'

def ListFiles(self):

    if self.IsDirectory():
        dir_fd = self.fd.as_directory()
        for f in dir_fd:
            try:
                name = f.info.name.name
                if ((name in ['.', '..']) or (name in self.BLACKLIST_FILES)):
                    continue
                (yield self.MakeStatResponse(f, tsk_attribute=None, append_name=name))
                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 AttributeError:
                pass
    else:
        raise IOError(('%s    is    not    a    directory' % self.pathspec.CollapsePath()))
