Fix File.Path on Windows
This commit is contained in:
parent
5f2f2141f8
commit
4456f3b206
2
file.go
2
file.go
@ -44,7 +44,7 @@ func (self *File) Rewrite(reader io.Reader) error {
|
|||||||
|
|
||||||
// Path returns the file path relative to the source directory.
|
// Path returns the file path relative to the source directory.
|
||||||
func (self *File) Path() string {
|
func (self *File) Path() string {
|
||||||
return self.relPath
|
return filepath.ToSlash(self.relPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name returns the base name of the file.
|
// Name returns the base name of the file.
|
||||||
|
Loading…
Reference in New Issue
Block a user