From b4a0941d4c7c1a990591705a65179d721f39e521 Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Mon, 2 Mar 2015 17:04:34 +0000
Subject: [PATCH] In remote paths, change native directory separators to / -
 fixes #37

---
 fs/fs.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/fs.go b/fs/fs.go
index 0a148c52f..e666997ac 100644
--- a/fs/fs.go
+++ b/fs/fs.go
@@ -6,6 +6,7 @@ import (
 	"fmt"
 	"io"
 	"log"
+	"path/filepath"
 	"regexp"
 	"time"
 )
@@ -235,6 +236,8 @@ func NewFs(path string) (Fs, error) {
 	if err != nil {
 		return nil, err
 	}
+	// change native directory separators to / if there are any
+	fsPath = filepath.ToSlash(fsPath)
 	return fs.NewFs(configName, fsPath)
 }