directory bug on linux; workaround?
jepler at unpythonic.net
Thu Jan 13 18:57:28 EST 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the Python-list