gphotofs
gphotofs copied to clipboard
Lumix: copying files (zero size)
The lumix libgphoto2 camlib is only partially implemented and complicated by the HTTP camera protocol.
With out-of-the-box gphotofs directory listing works but copying off files doesn't. I think this is because internally get_info_func
is not implemented so the files default to zero size.
I have made a tweak here in gphotofs_getattr
to grab the correct file size from the hash table if it exists. This gets copying working for me but I'm not very familiar with FUSE or libgphoto so I doubt this is a good solution.
I also had to rewind back to before c62319b since that commit broke mounting due to the partial lumix implementation.
I've put all this into a PPA for anyone else who needs this https://launchpad.net/~willat8/+archive/ubuntu/gphoto.
(Relates to this discussion https://github.com/gphoto/libgphoto2/issues/409)