mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
ulozto: Fix handling of root paths with leading / trailing slashes.
This fixes #7796
This commit is contained in:
parent
bd8523f208
commit
c5ff5afc21
@ -121,6 +121,9 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Strip leading and trailing slashes, see https://github.com/rclone/rclone/issues/7796 for details.
|
||||
root = strings.Trim(root, "/")
|
||||
|
||||
client := fshttp.NewClient(ctx)
|
||||
|
||||
f := &Fs{
|
||||
|
Loading…
Reference in New Issue
Block a user