Python is at the whim of the services the OS provides.  Maybe you should
ask in a linux-related newsgroup or mailing list, they might know more
about the specifics of both detecting and working around "weird"
filesystems like "fat".

To find the type of a filesystem, Linux provides the statfs(2) function,
but no built-in Python module includes access to that function.  Writing
the wrapper would be an easy first exercise in extending Python, or using
Pyrex or ctypes.  The filesystem "magic numbers" also aren't available
in Python.  A partial list can be found by "grep _SUPER_MAGIC
/usr/include/linux/*"

Jeff

Attachment: pgp3igY0cKFnR.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to