From a1d906fd3d2866086e3cded265ffe20404a5bf76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Lindberg?= Date: Sun, 19 Jul 2026 07:56:11 +0200 Subject: [PATCH] operations: fix Move godoc to note Copy fallback is accounted as a transfer - fixes #8799 --- fs/operations/operations.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/operations/operations.go b/fs/operations/operations.go index 88daa6c91..eb45a3136 100644 --- a/fs/operations/operations.go +++ b/fs/operations/operations.go @@ -416,7 +416,9 @@ func SameObject(src, dst fs.Object) bool { // It returns the destination object if possible. Note that this may // be nil. // -// This is accounted as a check. +// This is accounted as a check, unless Move falls back to Copy + Delete +// (on backends without server-side move), in which case the Copy is +// accounted as a transfer. func Move(ctx context.Context, fdst fs.Fs, dst fs.Object, remote string, src fs.Object) (newDst fs.Object, err error) { return move(ctx, fdst, dst, remote, src, false) }