Determining the volume ID for a file/drive?

Michael Hudson mwh at python.net
Tue Apr 29 09:55:55 EDT 2003


Alex Martelli <aleax at aleax.it> writes:

> Alex Martelli wrote:
>    ...
> > Quick and dirty...:
> > 
> > import os
> > x = os.popen('C:\\')
> 
> OOPS -- TOO quick -- sorry, I meant os.popen('DIR C:\\')!!!

I was wondering what that did!

Cheers,
M.

-- 
  Two things I learned for sure during a particularly intense acid
  trip in my own lost youth: (1) everything is a trivial special case
  of something else; and, (2) death is a bunch of blue spheres.
                                             -- Tim Peters, 1 May 1998




More information about the Python-list mailing list