When I needed to follow symlinks and exclude application-specific 
directories, I ended
up copying and customizing Walk() and walk() from the filepath package. 
They are
short and it was a straightforward to adapt them to my needs.

https://cs.opensource.google/go/go/+/refs/tags/go1.22.3:src/path/filepath/path.go;l=555
https://cs.opensource.google/go/go/+/refs/tags/go1.22.3:src/path/filepath/path.go;l=476

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/5b6737dc-5783-4a45-afe9-1faa2d9cf5aan%40googlegroups.com.

Reply via email to