[erlang-questions] windows paths in filename module
Fri Nov 25 14:54:36 CET 2011
On Fri, Nov 25, 2011 at 14:38, Tim Watson <watson.timothy@REDACTED> wrote:
> What the heck is this all about???
> 42> filename:join(os:getenv("HOMEDRIVE"),
> Am I doing something wrong?
I think the trouble is here:
join(Name1, Name2) when is_list(Name1), is_list(Name2) ->
OsType = major_os_type(),
case pathtype(Name2) of
relative -> join1(Name1, Name2, , OsType);
_Other -> join1(Name2, , , OsType)
because "\\Users\\602382443" is getting a pathtype of 'volumerelative'
and should be treated just like 'relative' when Name1 is a drive
reference. If it's not, then I'm not sure what is the right
More information about the erlang-questions