Minor cosmetic changes
This commit is contained in:
4
util.go
4
util.go
@@ -110,7 +110,7 @@ func GetSyncFilesRecursively(input string, output chan string, status chan error
|
|||||||
} else {
|
} else {
|
||||||
// log.Println(file.Name(), DirRegex.MatchString(file.Name()))
|
// log.Println(file.Name(), DirRegex.MatchString(file.Name()))
|
||||||
if FileRegex.MatchString(file.Name()) {
|
if FileRegex.MatchString(file.Name()) {
|
||||||
log.Printf("Writing")
|
// log.Printf("Writing")
|
||||||
output <- filepath.Join(directory, file.Name())
|
output <- filepath.Join(directory, file.Name())
|
||||||
}
|
}
|
||||||
atomic.AddInt32(&filesProcessed, 1)
|
atomic.AddInt32(&filesProcessed, 1)
|
||||||
@@ -128,5 +128,5 @@ func GetSyncFilesRecursively(input string, output chan string, status chan error
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
log.Printf("Done")
|
log.Printf("Files processed: %d; Folders processed: %d", filesProcessed, foldersProcessed)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user