Comment 12 for bug 1310957

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Some notes for bug fixing:

When using the GIO backend, relevant functions are
http://www.pygtk.org/docs/pygobject/class-giofile.html#method-giofile--query-filesystem-info
http://www.pygtk.org/docs/pygobject/class-giofileinfo.html
http://www.pygtk.org/docs/pygobject/gio-constants.html#gio-file-attribute-constants

Apparently, query_filesystem_info can return 0 for filesystem size and filesystem free without issuing an error. As sensible fix is to test for filesystem size of 0 and to assume it is actually unknown in that case.