Re: [go-nuts] filepath.walk in Go 1.19

2022-10-30 Thread Konstantin Khomoutov
On Sat, Oct 29, 2022 at 02:54:48PM -0700, Robert Solomon wrote: [...] >>> On ubuntu 22.04, I would like the walk function to NOT follow symlinks to >>> other filesystems. The find command uses the -xdev switch to achieve >>> this. >>> >>> How can I get walk to behave like the -xdev switch to

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-29 Thread Robert Solomon
I now have this working as I want using filepath/walk. But if I try to use a concurrent walk operation, like the one originally written by Michael T Jones, I get behavior that seems to treat any return of SkipDir as a fatal error and all walking stops. filepath/walk does not do this; it

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Robert Solomon
Thank you very much On Fri, Oct 28, 2022, 8:15 AM Marvin Renich wrote: > * Robert Solomon [221028 07:36]: > > On ubuntu 22.04, I would like the walk function to NOT follow symlinks > to > > other filesystems. The find command uses the -xdev switch to achieve > this. > > > > How can I get walk

Re: [go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Marvin Renich
* Robert Solomon [221028 07:36]: > On ubuntu 22.04, I would like the walk function to NOT follow symlinks to > other filesystems. The find command uses the -xdev switch to achieve this. > > How can I get walk to behave like the -xdev switch to find? On Linux: getdevid_linux.go package

[go-nuts] filepath.walk in Go 1.19

2022-10-28 Thread Robert Solomon
On ubuntu 22.04, I would like the walk function to NOT follow symlinks to other filesystems. The find command uses the -xdev switch to achieve this. How can I get walk to behave like the -xdev switch to find? Thx -- You received this message because you are subscribed to the Google Groups