Closed tuxxi closed 1 year ago
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.
io/fs
ErrNotFound
Nvm, I am confusing myself. This package doesn't expose an io/fs.FS so no need.
io/fs.FS
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 likeErrNotFound
in cases like that. https://pkg.go.dev/io/fs#pkg-variables.