mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:45:25 +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"
|
||||
"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 New Issue
Block a user