Skip to content

Instantly share code, notes, and snippets.

View mykelalvis's full-sized avatar
🏠
Working from home

Mykel Alvis mykelalvis

🏠
Working from home
  • Lynker
  • Birmingham, AL
  • 16:14 (UTC -06:00)
  • X @mykelalvis
View GitHub Profile
@webdevwilson
webdevwilson / compare-and-copy-files.groovy
Created January 19, 2011 15:55
Groovy code to compare to directory trees and copy different files over
def path1 = new File(args[0]).absolutePath
def path2 = new File(args[1]).absolutePath
def different = compareDirs(path1, path2)
different.files.each {
println it.from
new AntBuilder().copy ( file: it.from.absolutePath, tofile : it.to.absolutePath )
}
println different.files.size() + ' of ' + different.count