image

the sleepy snake

index :: path :: drive_type

drive_type(drive)

returns one of the following strings describing the type of the drive:

'unknown'unknown that is
'no_root_dir'invalid drive
'removable'as it says
'fixed'fixed - not removable
'remote'network drive
'cdrom'as it says
'ramdisk'as it says

sample

print drive_type('a:\\')
>> 'removable'