Determining the volume ID for a file/drive?

carroll at carroll at
Tue Apr 29 08:56:39 CEST 2003

Is there any way to determine the volume serial number for a disk,
given the filename (or drive, since I can determine the drive from the
filename with os.path.splitdrive(os.path.abspath(file))?

My environment is Windows & Python 2.2.2, and I don't need for my code
to be portable. 

More information about the Python-list mailing list