Make sure target destination has the right path separator.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera authored and bep committed 2015-06-11 21:16:51 +02:00
1 parent 3ab00e6e64
commit 53c9e890a2
1 file changed
+1 -1
+1 -1
View File
@@ -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 {