Make sure target destination has the right path separator.
authorDavid Calavera <david.calavera@gmail.com>
Thu, 11 Jun 2015 03:29:12 +0000 (20:29 -0700)
committerbep <bjorn.erik.pedersen@gmail.com>
Thu, 11 Jun 2015 19:16:51 +0000 (21:16 +0200)
Signed-off-by: David Calavera <david.calavera@gmail.com>
target/file.go

index 01037a72ba6f915f8f250cfc28776cad79f8abed..e6c9ad43efd68c0eed4578a9b43c3a91df4aa9d7 100644 (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 {