mirror of
https://github.com/rclone/rclone.git
synced 2025-06-20 11:47:57 +02:00
chunker: fix double-transform
Before this change, chunker could double-transform a file under certain conditions, when --name-transform was in use. This change fixes the issue by ensuring that --name-transform is disabled during internal file moves.
This commit is contained in:
parent
629b427443
commit
e469c8974c
@ -1861,6 +1861,8 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object,
|
||||
|
||||
// baseMove chains to the wrapped Move or simulates it by Copy+Delete
|
||||
func (f *Fs) baseMove(ctx context.Context, src fs.Object, remote string, delMode int) (fs.Object, error) {
|
||||
ctx, ci := fs.AddConfig(ctx)
|
||||
ci.NameTransform = nil // ensure operations.Move does not double-transform here
|
||||
var (
|
||||
dest fs.Object
|
||||
err error
|
||||
|
Loading…
x
Reference in New Issue
Block a user