mirror of
https://github.com/rclone/rclone.git
synced 2025-02-18 03:21:11 +01:00
In remote paths, change native directory separators to / - fixes #37
This commit is contained in:
parent
c03d6a1ec3
commit
b4a0941d4c
3
fs/fs.go
3
fs/fs.go
@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -235,6 +236,8 @@ func NewFs(path string) (Fs, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
// change native directory separators to / if there are any
|
||||||
|
fsPath = filepath.ToSlash(fsPath)
|
||||||
return fs.NewFs(configName, fsPath)
|
return fs.NewFs(configName, fsPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user