mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -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
|
// delete existing destination path if necessary
|
||||||
if (conflictAction == ConflictAction.OVERRIDE || (conflictAction == ConflictAction.AUTO && VideoQuality.isBetter(source, destination))) {
|
if (conflictAction == ConflictAction.OVERRIDE || (conflictAction == ConflictAction.AUTO && VideoQuality.isBetter(source, destination))) {
|
||||||
// do not delete files in test mode
|
log.fine(format("[%s] Delete [%s]", conflictAction, destination));
|
||||||
if (renameAction.canRevert()) {
|
|
||||||
|
// do not actually delete files in test mode
|
||||||
|
if (renameAction != StandardRenameAction.TEST) {
|
||||||
try {
|
try {
|
||||||
log.fine(format("[%s] Delete [%s]", conflictAction, destination));
|
|
||||||
delete(destination);
|
delete(destination);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning(format("[%s] Failed to delete [%s]: %s", conflictAction, destination, e));
|
log.warning(format("[%s] Failed to delete [%s]: %s", conflictAction, destination, e));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user