From 4456f3b206edf4189c9e23ae7a9dcbaf8f616e3f Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 15 Oct 2022 13:12:44 -0700 Subject: [PATCH] Fix File.Path on Windows --- file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.go b/file.go index 33e249e..e1a92de 100644 --- a/file.go +++ b/file.go @@ -44,7 +44,7 @@ func (self *File) Rewrite(reader io.Reader) error { // Path returns the file path relative to the source directory. func (self *File) Path() string { - return self.relPath + return filepath.ToSlash(self.relPath) } // Name returns the base name of the file.