Re: Newbie: List file system roots

2007-08-24 Thread Bjoern Schliessmann
"Einar W. Høst" wrote: > How would you list the file system roots in Python? That is, I'm > looking for a way to list all connected drives (C:, D: etc) on a > Windows box, or all /root, /tmp etc on a *nix box. /root and /tmp are no "roots", but normal directories. glob.glob("/*") will give you al

Re: Newbie: List file system roots

2007-08-24 Thread Tim Golden
Einar W. Høst wrote: > Hi, > > How would you list the file system roots in Python? That is, I'm looking > for a way to list all connected drives (C:, D: etc) on a Windows box, or > all /root, /tmp etc on a *nix box. In Java, there's a built-in API > function to do this, File.listRoots(), but I cou

Re: Newbie: List file system roots

2007-08-23 Thread kyosohma
On Aug 23, 2:48 pm, "Einar W. Høst" <[EMAIL PROTECTED]> wrote: > Hi, > > How would you list the file system roots in Python? That is, I'm looking > for a way to list all connected drives (C:, D: etc) on a Windows box, or > all /root, /tmp etc on a *nix box. In Java, there's a built-in API > functio

Newbie: List file system roots

2007-08-23 Thread Einar W. Høst
Hi, How would you list the file system roots in Python? That is, I'm looking for a way to list all connected drives (C:, D: etc) on a Windows box, or all /root, /tmp etc on a *nix box. In Java, there's a built-in API function to do this, File.listRoots(), but I couldn't find any equivalents in the