Menu

#283 How to download or upload an entire folder tree to a MTP device

1.1.8
open
nobody
None
1
2019-02-07
2019-02-07
No

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!

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.