Velocidex/go-ntfs

Return standard `io/fs` errors from FS operations

Closed this issue · 1 comments

tuxxi commented

Adhoc errors like "Not found" from here https://github.com/Velocidex/go-ntfs/blob/master/parser/mft.go#L123 are hard to check against.

Instead we should use or wrap the standard io/fs errors like ErrNotFound in cases like that. https://pkg.go.dev/io/fs#pkg-variables.

tuxxi commented

Nvm, I am confusing myself. This package doesn't expose an io/fs.FS so no need.