Now I am using Walk to go through my folder, I want to filter some folder when scan.
err := filepath.Walk("/home", func(path string, f os.FileInfo, err error) error {
...
})
The folder structure is:
home
/ | \
a b c
Can I make some exception list that filepath.Walk not scan folder a
? That is, I do not want any files in folder a
add into my scan result.