aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2013-09-13 19:23:20 -0700
committerJordan Wilberding <[email protected]>2013-09-13 19:23:20 -0700
commit431c89f22835fac4b74bfcd9170fcc4b081d7e05 (patch)
treeff7c2ec1202abc30a446227ae5d2b357e42a5e44 /src
parenta5fdbb8d925ccdc5bd43c98917bdeaa779ac12da (diff)
parentd02dd684dd685538c113da22f123b0850bb4f940 (diff)
downloadrelx-431c89f22835fac4b74bfcd9170fcc4b081d7e05.tar.gz
relx-431c89f22835fac4b74bfcd9170fcc4b081d7e05.tar.bz2
relx-431c89f22835fac4b74bfcd9170fcc4b081d7e05.zip
Merge pull request #38 from tsloughter/master
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),