ulozto: Fix handling of root paths with leading / trailing slashes.

This fixes #7796
This commit is contained in:
IoT Maestro 2024-05-04 20:33:25 +02:00 committed by Nick Craig-Wood
parent bd8523f208
commit c5ff5afc21

View File

@ -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{