|
From: Philip L. <ph...@ov...> - 2018-05-19 16:33:57
|
On Sat, 19 May 2018 09:27:30 -0700 Philip Langdale <ph...@ov...> wrote: > Hi Andrea, > > Well, this continues to be confusing, but at least this demonstrates > there must be some way to make it work. > > At this point, I'd start with establishing what the error code is. Due > to how the errorstack thing works in libmtp, we lose error codes when > they propagated up through gvfs. I'd suggest you print the error code > into the error message when getobjecthandles fails, or something > similar. If we're lucky, the code will tell us something useful (and > if we're unlucky, we'll get GeneralError back..) > > The codes are described in src/ptp.h You can also try and simplify your testing by building a simplified test case. The filetree example utility uses Get_Files_And_Folders to produce a recursive file tree for the device. This should give you the same error when examining the Camera folder that gvfs does. It'll probably be easier for you to work with this example. --phil |