mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -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
|
@Override
|
||||||
public File rename(File from, File to) throws Exception {
|
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 to hardlink
|
||||||
try {
|
try {
|
||||||
return HARDLINK.rename(from, to);
|
return HARDLINK.rename(from, to);
|
||||||
|
Loading…
Reference in New Issue
Block a user