<div class="gmail_quote">If this really bugs you, note that windows doesn't really care about / or \\<br><br>cd C:/Program Files/Putty gets you in the putty directory...<br><br>Shell completion (cmd.exe) may not work but, Win32 CreateFile works flawlessly...<br>
<br>Then I would suggest that you don't have to bother with "nativename" anymore<br><br>On Fri, Nov 25, 2011 at 2:38 PM, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com">watson.timothy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>What the heck is this all about???</div>
<div> </div>
<div>40> os:getenv("HOMEDRIVE"). <br>"C:"<br>41> os:getenv("HOMEPATH"). <br>
"<a>\\Users\\602382443</a>"<br>42> filename:join(os:getenv("HOMEDRIVE"), os:getenv("HOMEPATH")). <br>"/Users/602382443"<br>
43> filename:nativename(filename:join(os:getenv("HOMEDRIVE"), os:getenv("HOMEPATH"))). <br>"<a>\\Users\\602382443</a>"<br>44> filename:nativename("C:/" ++ os:getenv("HOMEPATH")). <br>
"c:\\Users\\602382443"<br>45> "C:" ++ os:getenv("HOMEPATH").</div>
<div>"c:\\Users\\602382443"<br></div>
<div>Do I *really* have to do this by hand? I had assumed that the whole point of filename:join/2 was that it does the right thing on each platform without me having to worry about what the directory separator is meant to be?</div>
<div> </div>
<div>Am I doing something wrong?</div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>