Skip to content

Instantly share code, notes, and snippets.

View TimTim74's full-sized avatar

Timothy Eichmann TimTim74

View GitHub Profile
@TimTim74
TimTim74 / comparedirs.groovy
Created May 9, 2016 12:59 — forked from igormukhin/comparedirs.groovy
Groovy script to compare two directory trees and output the differences
import groovy.transform.Field
@Field int processed = 0;
def dir1 = new File(args[0])
def dir2 = new File(args[1])
def diff = compareDirs(dir1, dir2)
diff.each {
printFileInfo(it.left, dir1, "Left: ")