func globalList(s *files.Set) []protocol.FileInfo { var fs []protocol.FileInfo s.WithGlobal(func(f protocol.FileInfo) bool { fs = append(fs, f) return true }) return fs }