Ensure recursive copy takes into account the proper target directory

This commit is contained in:
José Valim
2014-01-10 22:48:52 +01:00
parent ba88ee7c92
commit ee3fcdb96a
+1 -1
View File
@@ -343,7 +343,7 @@ defmodule Mix.Utils do
symlink_source = make_relative_path(source, target)
case :file.make_symlink(symlink_source, target) do
:ok -> :ok
{ :error, _ } -> File.cp_r!(source, Path.join(target, "."))
{ :error, _ } -> File.cp_r!(source, Path.dirname(target))
end
end