lib/usps_flags/helpers.rb in usps_flags-0.5.9 vs lib/usps_flags/helpers.rb in usps_flags-0.6.0

- old
+ new

@@ -118,9 +118,10 @@ def ensure_dir_for_file(path) return false if path.nil? || path.empty? || !path.scan('/') dirs = path.split('/') dirs.pop + dirs = ['.'] if dirs.empty? ::FileUtils.mkdir_p(dirs.join('/')).first end # Prints output to the console or saves to a file, then returns the generated data. #