diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-17 09:18:38 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-09-17 09:18:39 +0200 |
commit | 93741fda7c94662b0cec15ea1d1906a81032e1f1 (patch) | |
tree | aea13a734bd2fce27a1b84fa5eb3212b9d35b1a0 /CHANGELOG.md | |
parent | 905e4562272046d912f42f05973f48ca5ca02fd7 (diff) |
Fix: Delete target path before copying file to it
This fixes a bug: If the target file existed, but was created by another user,
the tokio::fs::copy() function was not able to overwrite it (only to empty the
file). So with this patch, we remove the file before we copy a new file to the
target location.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions