mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-11 06:50:27 -04:00
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:
parent
cb551d547e
commit
f391250830
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user