I am trying to implement libmtp.h library into one of my personal projects and I don't see an option to upload or download a directory to a MTP device or to a computer. There is a method LIBMTP_Get_File_To_File which is listed inside the library file using which I was been able to transfer files from MTP device but there is no mention on how to transfer a folder.
I found a workaround to transfer a folder structure—check whether a folder exists, if not create one and loop through the rest of the tree recursively and transfer them. But I don't feel that it's the correct way to achieve this.
Any suggestions will be helpful!
Thanks!
Anonymous