[email protected] wrote:
hi all, Is there any way to identify the File system type of a drive in python in Windows? Some thing like:C:\ -- NTFS D:\ -- FAT32..
<code>
import win32api
import win32file
def file_system (drive_letter):
return win32api.GetVolumeInformation (
win32file.GetVolumeNameForVolumeMountPoint (
"%s:\\" % drive_letter
)
)[4]
print file_system ("C")
</code>
TJG
--
http://mail.python.org/mailman/listinfo/python-list
