From: Niklas Baumstark Date: 2008-08-01T07:00:09+09:00 Subject: Re: How to get special directories? Siep Korteling wrote: > Niklas Baumstark wrote: >> Gordon Thiesfeld wrote: >>>>> require 'win32/dir' >>> => true >>>>> Dir::PROFILE >>> => "C:\\Documents and Settings\\gthiesfeld" >> >> Thanks that'll help alot! Is something similiar available on linux as >> well? >> >> Greetings, >> Niklas > > Can't test, but on linux > > require 'etc' > Etc.getpwuid(0) #needs integer user id > > should work. ( > http://www.ruby-doc.org/stdlib/libdoc/etc/rdoc/classes/Etc.html#M000661 > ) > > hth, > > Siep thank you all for your answers, i'm now gonna use win32-dir and etc, ignoring OS X. can't test it there. Greetings, Niklas -- Posted via http://www.ruby-forum.com/.