Had trouble with calibre build environment but got libmtp.so to build. The problem is in sendfile not file_metadata.
---
0. NAME driveinfo.calibre, parentid = 0 storageid = 65537 size = 290
1.After SendFile 0
2.file_metadata called and returned 7ff2cc15ee88
0. NAME driveinfo.calibre, parentid = 0 storageid = 131073 size = 288
1.After SendFile -1
Failed to upload file named: driveinfo.calibre to (u'Storage device',): 2:PTP Layer error 2002: send_file_object_info(): Could not send object info.
2:Error 2002: PTP: General Error
----
I downloaded the libmtp examples and tried using mtp-connect sendfile but got nowhere. Will try to look at this again this weekend.
-
|