'List all files in the dir.'

def ListFiles(self):

    if (not self.IsDirectory()):
        raise IOError(('%s    is    not    a    directory.' % self.path))
    else:
        for path in self.files:
            try:
                response = self.Stat(utils.JoinPath(self.path, path))
                pathspec = self.pathspec.Copy()
                pathspec.last.path = utils.JoinPath(pathspec.last.path, path)
                response.pathspec = pathspec
                (yield response)
            except OSError:
                pass
