Skip to content

Commit

Permalink
ulozto: Fix handling of root paths with leading / trailing slashes.
Browse files Browse the repository at this point in the history
This fixes #7796
  • Loading branch information
iotmaestro authored and ncw committed May 4, 2024
1 parent bd8523f commit c5ff5af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/ulozto/ulozto.go
Expand Up @@ -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{
Expand Down

0 comments on commit c5ff5af

Please sign in to comment.