Fix File.Path on Windows

This commit is contained in:
Alex Yatskov 2022-10-15 13:12:44 -07:00
parent 5f2f2141f8
commit 4456f3b206

View File

@ -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.