In remote paths, change native directory separators to / - fixes #37

This commit is contained in:
Nick Craig-Wood 2015-03-02 17:04:34 +00:00
parent c03d6a1ec3
commit b4a0941d4c
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}