From: David Calavera Date: Thu, 11 Jun 2015 03:29:12 +0000 (-0700) Subject: Make sure target destination has the right path separator. X-Git-Tag: v0.15~352 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=53c9e890;p=brevno-suite%2Fhugo Make sure target destination has the right path separator. Signed-off-by: David Calavera --- diff --git a/target/file.go b/target/file.go index 01037a72..e6c9ad43 100644 --- a/target/file.go +++ b/target/file.go @@ -40,7 +40,7 @@ func (fs *Filesystem) Publish(path string, r io.Reader) (err error) { } func (fs *Filesystem) Translate(src string) (dest string, err error) { - return filepath.Join(fs.PublishDir, src), nil + return filepath.Join(fs.PublishDir, filepath.FromSlash(src)), nil } func (fs *Filesystem) extension(ext string) string {