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 2015-06-10 20:29:12 -07:00 committed by bep
parent 3ab00e6e64
commit 53c9e890a2

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 {