lib/distil/source-file.rb in distil-0.14.4 vs lib/distil/source-file.rb in distil-0.14.5.a
- old
+ new
@@ -104,10 +104,10 @@
end
def copy_to(folder, prefix)
relative= path_relative_to_folder(prefix)
target_path= File.join(folder, relative)
- FileUtils.mkdir_p final_target_folder
+ FileUtils.mkdir_p File.dirname(target_path)
FileUtils.cp self.full_path, File.dirname(target_path)
target_path
end
end