mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Improved output logging if --conflict override is used in combination with --action test
This commit is contained in:
parent
51072a2c40
commit
ce2bfbb177
@ -612,10 +612,11 @@ public class CmdlineOperations implements CmdlineInterface {
|
||||
|
||||
// delete existing destination path if necessary
|
||||
if (conflictAction == ConflictAction.OVERRIDE || (conflictAction == ConflictAction.AUTO && VideoQuality.isBetter(source, destination))) {
|
||||
// do not delete files in test mode
|
||||
if (renameAction.canRevert()) {
|
||||
try {
|
||||
log.fine(format("[%s] Delete [%s]", conflictAction, destination));
|
||||
|
||||
// do not actually delete files in test mode
|
||||
if (renameAction != StandardRenameAction.TEST) {
|
||||
try {
|
||||
delete(destination);
|
||||
} catch (Exception e) {
|
||||
log.warning(format("[%s] Failed to delete [%s]: %s", conflictAction, destination, e));
|
||||
|
Loading…
x
Reference in New Issue
Block a user