Re: Cross-platform Home Directory?
Joel VanderWerf <vjoel@path.berkeley.edu> wrote:
> I have no idea what is right on OS X.
ENV[ 'HOME' ]
for example my "home" is :
/Users/yt
(never tried the File.expand_path('~') ) BUT on Mac OS X shell ~ expand
to home.
also i worry about the way win* representent pathes with \
does that means that, in ruby, there is no platform-independant way to
representant pathes, as, for example in Java ?
--
La politique est l'art d'empécher les gens
de se méler de ce qui les regarde.
Paul Valéry
|