1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-25 01:08:52 -05:00

* turn off deleteRoot in the cleaner script if called from cmdline directly with arguments

This commit is contained in:
Reinhard Pointner 2013-08-15 11:15:13 +00:00
parent be22317f41
commit ade022ac8f

View File

@ -331,6 +331,6 @@ if (clean) {
// deleting remaining files only makes sense after moving files // deleting remaining files only makes sense after moving files
if ('MOVE'.equalsIgnoreCase(_args.action)) { if ('MOVE'.equalsIgnoreCase(_args.action)) {
_log.info 'Clean clutter files and empty folders' _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] : [])
} }
} }