mirror of
https://github.com/golang/go
synced 2024-11-06 04:16:11 -07:00
5a22c00969
When a file is not found, it's common to return an error that can be detected with os.IsNotExist helper. It's possible to use os.PathError type to satisfy that requirement while still providing the path information in the error. Add a test that files that are not found return a non-nil error, and that the error satisfies os.IsNotFound. Change-Id: I5f1a26b18f2556af822ede73306541e8575ede28 Reviewed-on: https://go-review.googlesource.com/19503 Reviewed-by: Andrew Gerrand <adg@golang.org> |
||
---|---|---|
.. | ||
zipfs_test.go | ||
zipfs.go |