Create the output directory if it does not already exist.

This commit is contained in:
Robert Knight 2011-08-26 19:02:01 +01:00
parent 0a684be50f
commit d414423c35

View file

@ -1,5 +1,6 @@
#!/usr/bin/ruby
require 'fileutils'
require 'rubygems'
require 'find'
require 'json'
@ -259,6 +260,8 @@ input_dir = ARGV[0]
package_map_file = ARGV[1]
output_dir = ARGV[2]
FileUtils.mkpath(output_dir)
# get the details of each input file
input_file_list = []
Find.find(input_dir) do |path|