Project

General

Profile

Actions

Bug #19218

closed

backup file are not copied correctly when the destination directory is on another FS

Added by François ARMAND almost 3 years ago. Updated almost 3 years ago.

Status:
Released
Priority:
N/A
Category:
Performance and scalability
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

When the destination directory of java.nio.files.File.move is not in the same directory, it does not work and should throw an exception. Somehow, betterfiles eats it and we remain with only pain and sorrow.

We need to revert back from #16382 where we tried to improve performance with `java.nio` and visibly failed.

This ticket should:
- use a safer methods (FileUtils) - but still warn that the destination is bad,
- allow to not set a backup path.

Actions

Also available in: Atom PDF