How to get the root directory ?

From: Abs (abs_at_terra.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 20:14:57 +0100

Hi!

   I know how to get the user home directory with
System.getProperty("user.home"), but I cannot find any
system property to get the root directory in a file
tree. You know, the "My PC" in Windows or the "/" directory
in Unix. Is it possible with java ?

thanx

--
abs


Relevant Pages

  • Perl libs polluting root directory
    ... I'm running Gentoo, which does not yet have version 5.10 in the tree. ... Perl/CPAN appears to be putting packages into my root directory: ... Any idea what config is hosed on my system? ...
    (perl.beginners)
  • Re: What is the root of my C:
    ... C:\ = Root directory of Drive C. ... Just think as your hard-drive as a tree. ... place (rarely the case in practice), it remains a tree, not a graph. ...
    (alt.os.windows-xp)
  • Re: Modeling weird Windows pathnames
    ... > multiple trees), rather than a single rooted tree. ... The first element in the ... root" with the idea of a root directory. ...
    (comp.lang.java.programmer)
  • Re: TREE command...entire c: drive
    ... the listing is the same for both entries; the tree ... settings\user folder? ... the root directory. ...
    (microsoft.public.windowsxp.general)
  • Re: TREE command...entire c: drive
    ... the listing is the same for both entries; the tree ... settings\user folder? ... root directory. ...
    (microsoft.public.windowsxp.general)