internal/file: update comments

This commit is contained in:
Hajime Hoshi 2024-09-06 11:03:39 +09:00
parent e43bb3898b
commit 0e6702c043

View File

@ -64,7 +64,8 @@ func (v *VirtualFS) Open(name string) (fs.File, error) {
if filepath.Base(realPath) != es[0] {
continue
}
// TODO: Does this work on Windows?
// os.File should implement fs.File interface, so this should be fine even on Windows.
// See https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/os/file.go;l=695-710
return os.Open(filepath.Join(append([]string{realPath}, es[1:]...)...))
}