1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-10 19:35:15 -05:00
filebot/website/scripts/extract.groovy
Reinhard Pointner 6d341807d4 * simplify syntax for passing in script variables
=> changed -Xa=x -Xb=y... to --def a=x b=y ...
2012-07-28 21:17:29 +00:00

11 lines
211 B
Groovy

// filebot -script fn:extract <folder>
/*
* Auto-extract all zip and rar archives.
*/
args.getFiles{ it.isArchive() }.each {
def output = extract(file:it)
output.each{ println "Extracted: " + it.path }
}