Make recursive much much faster

By virtue of parallelism
This commit is contained in:
2024-07-01 18:28:06 +02:00
parent dcd17c21a4
commit 79794e59fe
2 changed files with 53 additions and 16 deletions

View File

@@ -28,6 +28,7 @@ const DefaultColor = White
const PathColor = Green
var DirRegex, _ = regexp.Compile(`^(.+?)[/\\]sync$`)
var FileRegex, _ = regexp.Compile(`^sync$`)
var programName = os.Args[0]
func main() {
@@ -131,6 +132,7 @@ func ReadFromFilesRecursively(input string, output chan LinkInstruction, status
wg.Add(1)
go func() {
defer wg.Done()
log.Println(file)
file = NormalizePath(file)
log.Printf("Processing file: %s%s%s", PathColor, file, DefaultColor)