<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to merge two folders with Dropbox.Net SDK? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706864#M31405</link>
    <description>&lt;P&gt;Dear support,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To rename a folder, I call the MoveV2Async(pathOld, pathNew).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the pathNew exists, it fails with an error "to/conflict/folder/".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the destination folder already exists, I'd like to merge the old folder including its contained files/subfolders to the destination folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. copy and replace the files/subfolders if they exist.&amp;nbsp; Is it possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me that the&amp;nbsp;three optional parameters in MoveV2Async are not for this purpose. Any other methods I can use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xiang&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 05:00:37 GMT</pubDate>
    <dc:creator>XiangZhou</dc:creator>
    <dc:date>2023-08-17T05:00:37Z</dc:date>
    <item>
      <title>How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706864#M31405</link>
      <description>&lt;P&gt;Dear support,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To rename a folder, I call the MoveV2Async(pathOld, pathNew).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the pathNew exists, it fails with an error "to/conflict/folder/".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the destination folder already exists, I'd like to merge the old folder including its contained files/subfolders to the destination folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. copy and replace the files/subfolders if they exist.&amp;nbsp; Is it possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me that the&amp;nbsp;three optional parameters in MoveV2Async are not for this purpose. Any other methods I can use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xiang&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 05:00:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706864#M31405</guid>
      <dc:creator>XiangZhou</dc:creator>
      <dc:date>2023-08-17T05:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706950#M31407</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1736622"&gt;@XiangZhou&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As seems, there is no option to 'merge' files/folders using move by now. What you can do depends on what exactly you want achieve. If you just want to replace the existing folder, it becomes easy - delete the existing folder and move there the desired one (on the follow up try, after the remove). In such a way entire content of existing folder will gone (doesn't matter are there parts that don't overlap). If you want to keep non overlapping parts, you have to implement recursive algorithm that walk through the folder tree of the source folder and perform try move (eventually followed by delete and move) for files only. At the end, you'll need remove the source folder (there will be eventually empty subfolders only). If you want to merge files content further, then some content specific algorithms will also need as a part of the recursion.&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 12:05:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706950#M31407</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-08-17T12:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706955#M31409</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1736622"&gt;@XiangZhou&lt;/a&gt;&amp;nbsp;Здравко is correct; the Dropbox API doesn't offer a way to merge folders like this directly, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You'd need to handle this in your code like they described. If/when you need to move multiple items, using &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.Routes.FilesUserRoutes.html#Dropbox_Api_Files_Routes_FilesUserRoutes_MoveBatchAsync_System_Collections_Generic_IEnumerable_Dropbox_Api_Files_RelocationPath__System_Boolean_System_Boolean_System_Boolean_" target="_blank"&gt;MoveBatchAsync&lt;/A&gt; can help.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 12:24:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/706955#M31409</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-08-17T12:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/707171#M31417</link>
      <description>&lt;P&gt;Thanks for your suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to implement it manually by deleting files in the destination folder firstly if exist and then move the files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After calling the DeleteBatchV2Async, how do I safely wait until the files have been completely deleted before calling the&amp;nbsp; MoveBatchAsync. Could you show me some sample code?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 05:12:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/707171#M31417</guid>
      <dc:creator>XiangZhou</dc:creator>
      <dc:date>2023-08-18T05:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/707276#M31421</link>
      <description>&lt;P&gt;I don't believe we have sample code for &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.Routes.FilesUserRoutes.html#Dropbox_Api_Files_Routes_FilesUserRoutes_DeleteBatchAsync_System_Collections_Generic_IEnumerable_Dropbox_Api_Files_DeleteArg__" target="_blank"&gt;DeleteBatchAsync&lt;/A&gt; in particular unfortunately, but you should poll &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.Routes.FilesUserRoutes.html#Dropbox_Api_Files_Routes_FilesUserRoutes_DeleteBatchCheckAsync_System_String_" target="_blank"&gt;DeleteBatchCheckAsync&lt;/A&gt; to see when the job is done. Refer to the documentation linked there for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, it looks like you mixed up DeleteBatchAsync with DeleteV2Async or MoveBatchV2Async; there's no DeleteBatchV2Async.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 15:09:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/707276#M31421</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-08-18T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/762945#M33380</link>
      <description>&lt;P&gt;Has there been any progress on this? I've accidently created a duplicate of a large folder&amp;nbsp; and have been adding to both without realizing my error. I want to now merge without fear of losing something. Is this possible within Dropbox or some additional software/app?&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 18:28:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/762945#M33380</guid>
      <dc:creator>DCProducer</dc:creator>
      <dc:date>2024-04-09T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two folders with Dropbox.Net SDK?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/762947#M33382</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1822605"&gt;@DCProducer&lt;/a&gt; No, I don't have an update on this feature request for the Dropbox API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this thread is regarding some functionality for the Dropbox API for use by developers. It's possible someone has already developed an app as a solution for this scenario, but unfortunately I can't offer guidance on third party apps like that.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 18:33:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-merge-two-folders-with-Dropbox-Net-SDK/m-p/762947#M33382</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-04-09T18:33:52Z</dc:date>
    </item>
  </channel>
</rss>

