<?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 Re: Move empty folder via Python API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-empty-folder-via-Python-API/m-p/528721#M25605</link>
    <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/68094001/dropbox-python-api-move-empty-folder-to-another-folder" target="_blank"&gt;https://stackoverflow.com/questions/68094001/dropbox-python-api-move-empty-folder-to-another-folder&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 'to/conflict/folder' error indicates that the move failed because a folder already exists at the specified destination path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When moving something via the API, the destination path you specify should be the full desired path of the moved item, not just the path of the parent folder where you want to put the item. So, in this case, instead of setting dst = "/on_review", you should set dst = "/on_review/d" (or whatever you want it called).&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 17:44:17 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-06-23T17:44:17Z</dc:date>
    <item>
      <title>Move empty folder via Python API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-empty-folder-via-Python-API/m-p/528625#M25603</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;
&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;SPAN&gt;I am using Python SDK for Dropbox and trying to move one folder (empty if it is important) to another. Example:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="s-prose js-post-body"&gt;
&lt;PRE&gt;dbx = dropbox.Dropbox(config.DROPBOX_ACCESS_TOKEN)

src="/some/long/path/to/the/folder"
dst = "/on_review"

dbx.dbx.files_move(src, dst)&lt;/PRE&gt;
&lt;P&gt;And always got this error:&lt;/P&gt;
&lt;PRE&gt;Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "/home/username/.venv/lib/python3.9/site-packages/dropbox/base.py", line 2222, in files_move
    r = self.request(
  File "/home/username/.venv/lib/python3.9/site-packages/dropbox/dropbox_client.py", line 346, in request
    raise ApiError(res.request_id,
dropbox.exceptions.ApiError: ApiError('922df7920b19424a97600d5250a1ee90', RelocationError('to', WriteError('conflict', WriteConflictError('folder', None))))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally I do not want to think "whether folder contains anything or not", I just want to pick folder `/a/b/c/d` and move it so new path will be `/on_review/d`.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="mt24 mb12"&gt;
&lt;DIV class="post-taglist grid gs4 gsy fd-column"&gt;
&lt;DIV class="grid ps-relative"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Jun 2021 09:16:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-empty-folder-via-Python-API/m-p/528625#M25603</guid>
      <dc:creator>kotique</dc:creator>
      <dc:date>2021-06-23T09:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Move empty folder via Python API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-empty-folder-via-Python-API/m-p/528721#M25605</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/68094001/dropbox-python-api-move-empty-folder-to-another-folder" target="_blank"&gt;https://stackoverflow.com/questions/68094001/dropbox-python-api-move-empty-folder-to-another-folder&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 'to/conflict/folder' error indicates that the move failed because a folder already exists at the specified destination path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When moving something via the API, the destination path you specify should be the full desired path of the moved item, not just the path of the parent folder where you want to put the item. So, in this case, instead of setting dst = "/on_review", you should set dst = "/on_review/d" (or whatever you want it called).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 17:44:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-empty-folder-via-Python-API/m-p/528721#M25605</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-23T17:44:17Z</dc:date>
    </item>
  </channel>
</rss>

