diff options
author | Tristan Sloughter <[email protected]> | 2015-06-25 21:01:49 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-06-25 21:01:49 -0500 |
commit | de9a40aa699d26e1651e11c6776f2f6b1c9c1c1f (patch) | |
tree | 8ce6f09d2da459335d55047d5ac54d23f9bb8f8c /src | |
parent | 3b2c57acb963ffb2d5fd128927851c953a558f9b (diff) | |
parent | b0dc9ad8d3e96d8882e0edb3e94cc6c4b553afd3 (diff) | |
download | relx-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.erl | 4 |
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; |