From: Siep Korteling Date: 2008-08-01T05:13:09+09:00 Subject: Re: How to get special directories? 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 -- Posted via http://www.ruby-forum.com/.