analyzing removable media

glenn glenn at
Sat Sep 30 03:03:05 CEST 2006

> 	As soon as you ask for "cross platform" and something that is
> device/OS specific... you have conflict.
> From the win32 extensions:
> win32file.GetDriveType
> int = GetDriveType()
> Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk,
> or network drive.
> Return Value
> The result is one of the DRIVE_* constants.
> 	I suspect Linux would require checking parameters in the fstab file.
Thanks for the tip Dennis

More information about the Python-list mailing list