lib/environment.rb in dev_tasks-0.0.147 vs lib/environment.rb in dev_tasks-0.0.148

- old
+ new

@@ -17,11 +17,13 @@ def self.copy_files files,dest Console.debug("Environment.copy_files([#{files.to_s}],'#{dest}'')") files.each{|f| if(File.directory?(dest)) - Console.debug "copying #{f} to #{dest}/#{f}" - FileUtils.cp(f,dest + "/" + f) + dest_file = "#{dest}/#{f}" + Console.debug "copying #{f} to #{dest_file}" + FileUtis.mkdir_p(File.dirname(dest_file)) if(!File.exists?(File.dirname(dest_file))) + FileUtils.cp(f,dest_file) end } end def self.svn_add_all dir \ No newline at end of file