Skip to content

Instantly share code, notes, and snippets.

View ddeyoung's full-sized avatar

Dustin DeYoung ddeyoung

  • Indianapolis, IN
View GitHub Profile
#!/usr/bin/env ruby
# Usage:
# ksdiffdir.rb /path/to/a /path/to/b
FOLDER_A = ARGV[0]
FOLDER_B = ARGV[1]
def build_file_list(dir_path)
Dir.glob("#{dir_path}/**/*").select{ |f| File.file?(f) }.collect{ |f| f.gsub("#{dir_path}", '') }