I've made the above change, which seems to work at the GNOME-VFS level:
>>> import gnomevfs >>> bda = '00:0E:ED:...' >>> def free_space(path): ... uri = gnomevfs.URI('obex://[%s]%s' % (bda, path)) ... return gnomevfs.get_volume_free_space(uri) ... >>> free_space('/') 4802560L >>> free_space('/Images/') 4802560L >>> free_space('/Memory%20card/') 26442752L
However, I am still seeing 4.6MB free space when browsing "Memory card" in Nautilus, so there is probably something else I need to do to get it working in Nautilus.
I've made the above change, which seems to work at the GNOME-VFS level:
>>> import gnomevfs URI('obex: //[%s]% s' % (bda, path)) get_volume_ free_space( uri) '/Images/ ') '/Memory% 20card/ ')
>>> bda = '00:0E:ED:...'
>>> def free_space(path):
... uri = gnomevfs.
... return gnomevfs.
...
>>> free_space('/')
4802560L
>>> free_space(
4802560L
>>> free_space(
26442752L
However, I am still seeing 4.6MB free space when browsing "Memory card" in Nautilus, so there is probably something else I need to do to get it working in Nautilus.