aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-09-13 20:48:47 -0500
committerTristan Sloughter <[email protected]>2013-09-13 20:48:47 -0500
commitd02dd684dd685538c113da22f123b0850bb4f940 (patch)
treeff7c2ec1202abc30a446227ae5d2b357e42a5e44 /src
parent99f94d4514878cee51c38fd3d838d4076133566e (diff)
downloadrelx-d02dd684dd685538c113da22f123b0850bb4f940.tar.gz
relx-d02dd684dd685538c113da22f123b0850bb4f940.tar.bz2
relx-d02dd684dd685538c113da22f123b0850bb4f940.zip
support copying full directories in overlays
Diffstat (limited to 'src')
-rw-r--r--src/rlx_prv_overlay.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_prv_overlay.erl b/src/rlx_prv_overlay.erl
index 2a81730..f242d21 100644
--- a/src/rlx_prv_overlay.erl
+++ b/src/rlx_prv_overlay.erl
@@ -314,7 +314,7 @@ copy_to(State, FromFile0, ToFile0) ->
erlang:iolist_to_binary(filename:join(ToFile1,
filename:basename(FromFile1)))
end,
- case ec_file:copy(FromFile1, ToFile2) of
+ case ec_file:copy(FromFile1, ToFile2, [recursive]) of
ok ->
{ok, FileInfo} = file:read_file_info(FromFile1),
ok = file:write_file_info(ToFile2, FileInfo),