lib/fs: Improve error messages checking file paths (fixes #7942) (#8148)

This commit is contained in:
Simon Frei
2022-01-29 18:47:55 +01:00
committed by GitHub
parent 73e2e2a794
commit 8763fb05ec
2 changed files with 8 additions and 4 deletions
-1
View File
@@ -23,7 +23,6 @@ var (
errInvalidFilenameWindowsSpacePeriod = errors.New("name is invalid, must not end in space or period on Windows")
errInvalidFilenameWindowsReservedName = errors.New("name is invalid, contains Windows reserved name (NUL, COM1, etc.)")
errInvalidFilenameWindowsReservedChar = errors.New("name is invalid, contains Windows reserved character (?, *, etc.)")
errNotRelative = errors.New("not a relative path")
)
type OptionJunctionsAsDirs struct{}