mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 02:23:24 +00:00
In remote paths, change native directory separators to / - fixes #37
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user