forked from TrueCloudLab/rclone
In remote paths, change native directory separators to / - fixes #37
This commit is contained in:
parent
c03d6a1ec3
commit
b4a0941d4c
1 changed files with 3 additions and 0 deletions
3
fs/fs.go
3
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue