From c5ff5afc21e818835e953eb424c8744daa1eb49e Mon Sep 17 00:00:00 2001 From: IoT Maestro Date: Sat, 4 May 2024 20:33:25 +0200 Subject: [PATCH] ulozto: Fix handling of root paths with leading / trailing slashes. This fixes #7796 --- backend/ulozto/ulozto.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/ulozto/ulozto.go b/backend/ulozto/ulozto.go index 063f465db311a..1cdeefd749758 100644 --- a/backend/ulozto/ulozto.go +++ b/backend/ulozto/ulozto.go @@ -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{