Hint #1: Note that fs.DirEntry.Name() only contains the final component of the path: https://golang.org/pkg/io/fs/#DirEntry.Hint #2: Note that fs.WalkDirFunc()'s first argument is the full path to the directory entry: https://golang.org/pkg/io/fs/#WalkDirFunc. See the example for the older fs.Walk() function: https://golang.org/pkg/path/filepath/#example_Walk.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9ec35241-8fa6-49bd-ad07-56b57cc8cd3an%40googlegroups.com.
--Kurtis RaderCaretaker of the exceptional canines Junior and Hank
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9ec35241-8fa6-49bd-ad07-56b57cc8cd3an%40googlegroups.com.