REFLINK / CLONE may created empty files if REFLINK is not supported. This is bad.

REVERT: --action duplicate back the original behaviour of hardlink if possible, copy otherwise
This commit is contained in:
Reinhard Pointner 2019-05-20 15:20:22 +07:00
parent cb551d547e
commit f391250830
1 changed files with 0 additions and 9 deletions

View File

@ -87,15 +87,6 @@ public enum StandardRenameAction implements RenameAction {
@Override
public File rename(File from, File to) throws Exception {
// try to clone
if (Platform.isMac() || Platform.isLinux()) {
try {
return CLONE.rename(from, to);
} catch (Exception e) {
debug.finest(cause(CLONE, e));
}
}
// try to hardlink
try {
return HARDLINK.rename(from, to);