From 4e5282ccfd5b0f510ce7e29a2daa886c9b639f59 Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Mon, 27 Jan 2025 08:35:48 +0100 Subject: [PATCH] After a rename, the original file should be deleted. --- Tools/RemoteSynchronization/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/RemoteSynchronization/Program.cs b/Tools/RemoteSynchronization/Program.cs index a255c179c..c539f0ad3 100644 --- a/Tools/RemoteSynchronization/Program.cs +++ b/Tools/RemoteSynchronization/Program.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2025, The Duplicati Team +// Copyright (C) 2025, The Duplicati Team // https://duplicati.com, hello@duplicati.com // // Permission is hereby granted, free of charge, to any person obtaining a @@ -181,6 +181,7 @@ namespace RemoteSynchronization { await b.GetAsync(f.Name, downloaded, CancellationToken.None); await b.PutAsync($"{f.Name}.{suffix}", downloaded, CancellationToken.None); + await b.DeleteAsync(f.Name, CancellationToken.None); downloaded.SetLength(0); successful_renames++; }