From 0e6702c043f83d096709520ac329799b0e9b5270 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 6 Sep 2024 11:03:39 +0900 Subject: [PATCH] internal/file: update comments --- internal/file/file_notjs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/file/file_notjs.go b/internal/file/file_notjs.go index f9428b85b..ea58456af 100644 --- a/internal/file/file_notjs.go +++ b/internal/file/file_notjs.go @@ -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:]...)...)) }