From: Niklas Baumstark Date: 2008-08-01T17:42:30+09:00 Subject: Re: How to get special directories? Nobuyoshi Nakada wrote: > Hi, > > At Fri, 1 Aug 2008 16:29:08 +0900, > Niklas Baumstark wrote in [ruby-talk:309767]: >> > It works with 1.8.7 and 1.8.6-p127 or lator, even on Windows, >> > and is the cross-platform and official recommended way. >> >> File.expand_path("~") ? > > Yes. irb(main):001:0> File.expand_path('~') ArgumentError: couldn't find HOME environment -- expanding `~' from (irb):1:in `expand_path' from (irb):1 under Windows XP Pro. Greetings, Niklas -- Posted via http://www.ruby-forum.com/.