syncthing debug

This commit is contained in:
Tordarus 2025-01-16 13:16:12 +01:00
parent de9c92d6be
commit 21e4b54f38

View File

@ -66,6 +66,15 @@ func main() {
}) })
filesByGroup := channel.FlatMap(groupedFiles, func(key string, _ struct{}) string { return key }) filesByGroup := channel.FlatMap(groupedFiles, func(key string, _ struct{}) string { return key })
filesByGroup = channel.MapSuccessive(filesByGroup, func(s string) string {
fmt.Println("GROUPED", s)
fmt.Println("EXISTS", Exists(s))
fmt.Println("SymlinkFilesOnly", SymlinkFilesOnly(s))
fmt.Println("VideosOnly", VideosOnly(s))
return s
})
filteredFiles := channel.Filter(filesByGroup, Or(Not(Exists), And(SymlinkFilesOnly, VideosOnly))) filteredFiles := channel.Filter(filesByGroup, Or(Not(Exists), And(SymlinkFilesOnly, VideosOnly)))
filteredFiles = channel.MapSuccessive(filteredFiles, func(s string) string { filteredFiles = channel.MapSuccessive(filteredFiles, func(s string) string {