<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 283: How to download or upload an entire folder tree to a MTP device</title><link href="https://sourceforge.net/p/libmtp/support-requests/283/" rel="alternate"/><link href="https://sourceforge.net/p/libmtp/support-requests/283/feed.atom" rel="self"/><id>https://sourceforge.net/p/libmtp/support-requests/283/</id><updated>2019-02-07T15:04:46.654000Z</updated><subtitle>Recent changes to 283: How to download or upload an entire folder tree to a MTP device</subtitle><entry><title>How to download or upload an entire folder tree to a MTP device</title><link href="https://sourceforge.net/p/libmtp/support-requests/283/" rel="alternate"/><published>2019-02-07T15:04:46.654000Z</published><updated>2019-02-07T15:04:46.654000Z</updated><author><name>Ganesh Rathinavel</name><uri>https://sourceforge.net/u/ganeshrnet/</uri></author><id>https://sourceforge.net043683427a50c7eff682efd2636959b95b881f59</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Any suggestions will be helpful!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>