Running in test mode will still delete existing conflicts

All your suggestions, requests and ideas for future development
Post Reply
cowmix
Power User
Posts: 30
Joined: 09 Jan 2015, 11:03

Running in test mode will still delete existing conflicts

Post by cowmix »

This is a pretty minor bug that as mostly just an annoyance when I was testing my amc script on files that I had already hardlinked/organized previously with filebot. Filebot will still honor the conflict parameter when you run in action test mode and delete the existing files in preparation for new ones that will not be moved since its test mode. Running in test mode should ignore the conflict/delete step.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running in test mode will still delete existing conflict

Post by rednoah »

You mean in the rename(...) call? That should work. But the Groovy code in the script may not respect --action test though. Logs would help with this one since I never had that issue.
:idea: Please read the FAQ and How to Request Help.
cowmix
Power User
Posts: 30
Joined: 09 Jan 2015, 11:03

Re: Running in test mode will still delete existing conflict

Post by cowmix »

I can send logs but they don't really contain much helpful information but basically if you run:

Code: Select all

filebot -script "/home/filebot/amc.groovy" --action "hardlink" --conflict "override" etc..
you'll get something like:

Code: Select all

[HARDLINK] Rename [/from/from.ext] to [/to/to.ext]
if you then run it again on the same files:

Code: Select all

filebot -script "/home/filebot/amc.groovy" --action "test" --conflict "override" etc..
you'll get:

Code: Select all

[TEST] Rename [/from/from.ext] to [/to/to.ext]
and the original /to/to.ext from the first filebot run will be deleted even though you ran the new action in test mode

the reason I wouldn't run the second call in skip mode is because then nothing would happen and I wouldn't be able to test my amc changes.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running in test mode will still delete existing conflict

Post by rednoah »

I see. Fixed with r2791.
:idea: Please read the FAQ and How to Request Help.
Post Reply