libmtp icon indicating copy to clipboard operation
libmtp copied to clipboard

`LIBMTP_Get_Filelisting_With_Callback()` and `LIBMTP_Get_Folder_List_For_Storage()` can work only in Cached mode

Open cher-nov opened this issue 2 years ago • 0 comments

https://github.com/libmtp/libmtp/blob/e8480ba15dfac50c2e685e39f80805c1e2b2faf0/src/libmtp.c#L2885-L2894

This function is called by both functions mentioned in the title. But because of this block of code, the params->nrofobjects == 0 condition will remain true, so there never will be any objects made available in Uncached mode.

There are also other functions that suffer from this, which can be found by this line.

This should be either fixed or explicitly stated somewhere in the docs.

cher-nov avatar Oct 27 '22 15:10 cher-nov