From: "Sean O'Dell" Date: 2003-09-20T01:18:33+09:00 Subject: Re: File.expand_path and ~ on windows Tom Felker wrote: > On Thu, 18 Sep 2003 17:16:00 +0100, Alan Davies wrote: > > >> From the pickaxe book... >> >> > File.expand_path( fileName [, aDirString ] ) -> fileName >> >> > The given pathname may start with a ``~'', which expands to the >> > process owner's home directory (the environment variable HOME must be >> > set correctly). "~ user" expands to the named user's home directory" >> >>This isn't relevant on windows. Thus: > > > Wouldn't it make more sense to expand it to My Documents (C:\Documents and > Settings\Username\My Documents on WinXP)? I suppose it would be > worthwhile to be able to disable it, though. Actually, I think it should just expand to C:\Documents and Settings\UserName and you can append the rest from there. That's the *nix equivalent pretty much. Sean O'Dell