We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db5bace commit feaa6edCopy full SHA for feaa6ed
context_fs_go1.16.go
@@ -33,7 +33,7 @@ func fsFile(c Context, file string, filesystem fs.FS) error {
33
34
fi, _ := f.Stat()
35
if fi.IsDir() {
36
- file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows
+ file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows. fs.Open and os.Open are different in that aspect.
37
f, err = filesystem.Open(file)
38
if err != nil {
39
return ErrNotFound
0 commit comments