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.

** Changed in: gnome-vfs-obexftp (upstream)
       Status: Confirmed => In Progress

-- 
Free Space on Phone's SD Card Incorrect in Nautilus 
https://bugs.launchpad.net/bugs/116912
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to