Skip to content

Commit

Permalink
fix(rcserver): allow to stream files as the dir is listed
Browse files Browse the repository at this point in the history
Fixes #4132
  • Loading branch information
Michal-Leszczynski committed Dec 2, 2024
1 parent 73bca43 commit 57194ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/rclone/rcserver/rc.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ func rcChunkedList(ctx context.Context, in rc.Params) (out rc.Params, err error)
}
}

ctx, ci := fs.AddConfig(ctx)
// Allow for calling callback as the dir is listed (#4132)
ci.UseListCB = true

w, err := in.GetHTTPResponseWriter()
if err != nil {
return nil, err
Expand Down

0 comments on commit 57194ae

Please sign in to comment.