1. List video files
2. Rename files according to the given naming scheme (in this case keep existing name/extension but insert resolution in between)
3. Print new file paths
Code: Select all
args.getFiles{ it.isVideo() }.each {
println it.moveTo(new File(getMediaInfo(file:it, format:"{fn} [{resolution}].{ext}")))
}