aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-06-25 21:01:49 -0500
committerTristan Sloughter <[email protected]>2015-06-25 21:01:49 -0500
commitde9a40aa699d26e1651e11c6776f2f6b1c9c1c1f (patch)
tree8ce6f09d2da459335d55047d5ac54d23f9bb8f8c /src
parent3b2c57acb963ffb2d5fd128927851c953a558f9b (diff)
parentb0dc9ad8d3e96d8882e0edb3e94cc6c4b553afd3 (diff)
downloadrelx-de9a40aa699d26e1651e11c6776f2f6b1c9c1c1f.tar.gz
relx-de9a40aa699d26e1651e11c6776f2f6b1c9c1c1f.tar.bz2
relx-de9a40aa699d26e1651e11c6776f2f6b1c9c1c1f.zip
Merge pull request #356 from Taure/fix-windows-symlink
Fix paths for symlinks
Diffstat (limited to 'src')
-rw-r--r--src/rlx_util.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_util.erl b/src/rlx_util.erl
index f732055..775d78d 100644
--- a/src/rlx_util.erl
+++ b/src/rlx_util.erl
@@ -222,7 +222,9 @@ symlink_or_copy(Source, Target) ->
{error, _} ->
case os:type() of
{win32, _} ->
- win32_symlink(Source, Target);
+ S = unicode:characters_to_list(Source),
+ T = unicode:characters_to_list(Target),
+ win32_symlink(filename:nativename(S), filename:nativename(T));
_ ->
case filelib:is_dir(Target) of
true -> ok;