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

* if output is filtered using file arguments, only print history entries where the final destination file exists

This commit is contained in:
Reinhard Pointner 2012-11-12 14:30:29 +00:00
parent d6b8c187a0
commit 3dc145b55e

View File

@ -6,7 +6,7 @@ def template = new groovy.text.GStringTemplateEngine().createTemplate(format)
// use args to list history only for the given folders if desired // use args to list history only for the given folders if desired
def accept(from, to) { def accept(from, to) {
args.empty ? true : args.find{ to.absolutePath.startsWith(it.absolutePath) } args.empty ? true : args.find{ to.absolutePath.startsWith(it.absolutePath) } && to.exists()
} }