mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -05:00
* turn off deleteRoot in the cleaner script if called from cmdline directly with arguments
This commit is contained in:
parent
be22317f41
commit
ade022ac8f
@ -331,6 +331,6 @@ if (clean) {
|
||||
// deleting remaining files only makes sense after moving files
|
||||
if ('MOVE'.equalsIgnoreCase(_args.action)) {
|
||||
_log.info 'Clean clutter files and empty folders'
|
||||
include('cleaner', [root:true], !args.empty ? args : ut_kind == 'multi' && ut_dir ? [ut_dir as File] : [])
|
||||
include('cleaner', args.empty ? [root:true] : [root:false], !args.empty ? args : ut_kind == 'multi' && ut_dir ? [ut_dir as File] : [])
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user