diff options
author | Eric <[email protected]> | 2012-12-18 16:44:44 -0500 |
---|---|---|
committer | Eric <[email protected]> | 2012-12-18 16:44:44 -0500 |
commit | 16368e6531d6bdcd6a2f6a92bd18a20c131766f0 (patch) | |
tree | 53f65171b0f9b44fb3e45d46d53c4257ef74187f /src | |
parent | 51b627c68792039c7c7162d354ff0250c7a795b8 (diff) | |
download | relx-16368e6531d6bdcd6a2f6a92bd18a20c131766f0.tar.gz relx-16368e6531d6bdcd6a2f6a92bd18a20c131766f0.tar.bz2 relx-16368e6531d6bdcd6a2f6a92bd18a20c131766f0.zip |
ensure that each directory is explicitly created before a copy occures.
Diffstat (limited to 'src')
-rw-r--r-- | src/rcl_prv_assembler.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rcl_prv_assembler.erl b/src/rcl_prv_assembler.erl index 271b0d5..b8766df 100644 --- a/src/rcl_prv_assembler.erl +++ b/src/rcl_prv_assembler.erl @@ -168,6 +168,7 @@ copy_dir(AppDir, TargetDir, SubDir) -> false -> ok end, + ok = filelib:ensure_dir(SubTarget), case ec_file:copy(SubSource, SubTarget, [recursive]) of {error, E} -> ?RCL_ERROR({ec_file_error, AppDir, TargetDir, E}); |