<?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: dbx.files_move Error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722533#M31929</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749688"&gt;@Mgymnasts&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As seems, you're trying to list some file. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; Only folders can be listed! When you perform list to the folder where particular file resides in, you will get that file information together with all other. Of course, you can get the file metadata directly if that's what you want, using corresponding method. By the way, this has nothing to do with the move.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 15:02:27 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-10-18T15:02:27Z</dc:date>
    <item>
      <title>dbx.files_move Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722520#M31928</link>
      <description>&lt;P&gt;I am getting&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;Error listing folder contents: ApiError('NUMBERSANDLETTERS', ListFolderError('path', LookupError('not_folder', None)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This comes from this line of code:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;files_move&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;source_path&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;destination_path&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;I believe I am getting this error because of the to_path. Is that how I should read this error statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My file structure on dropbox is Parent Folder/Apps/Child Folder/Processed&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The from_path is '/Child Folder/Grandchild Folder/filename.csv'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried the to_path = '/Child Folder/Processed',&amp;nbsp;to_path ='/Child Folder/Processed',&amp;nbsp;to_path = "/Child Folder/Processed/filename.csv', to_path = "/Child Folder/Processed/filename.csv/" and all have given the same error.&amp;nbsp; I appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 18:30:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722520#M31928</guid>
      <dc:creator>Mgymnasts</dc:creator>
      <dc:date>2023-10-19T18:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.files_move Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722533#M31929</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749688"&gt;@Mgymnasts&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As seems, you're trying to list some file. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; Only folders can be listed! When you perform list to the folder where particular file resides in, you will get that file information together with all other. Of course, you can get the file metadata directly if that's what you want, using corresponding method. By the way, this has nothing to do with the move.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:02:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722533#M31929</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-10-18T15:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.files_move Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722538#M31930</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749688"&gt;@Mgymnasts&lt;/a&gt;&amp;nbsp;Здравко is correct; while you mentioned using the 'files_move' method, the error output you showed contains a '&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/files.html#dropbox.files.ListFolderError" target="_blank"&gt;ListFolderError&lt;/A&gt;'. A &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/files.html#dropbox.files.ListFolderError" target="_blank"&gt;ListFolderError&lt;/A&gt; would come from &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt; (or &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder_get_latest_cursor&lt;/A&gt;). For comparison, &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_move" target="_blank"&gt;files_move&lt;/A&gt; would raise a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/files.html#dropbox.files.RelocationError" target="_blank"&gt;RelocationError&lt;/A&gt;. You can see the return and error types for each in the documentation linked there for each method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, that error is not coming from that particular line of code. In any case, the error itself means that the list_folder call failed because you supplied a path to something that isn't a folder; only folders can be listed like that. (If you want to get the metadata for a specific file, you would use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_get_metadata" target="_blank"&gt;files_get_metadata&lt;/A&gt; instead.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, you should use the newer &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_move_v2" target="_blank"&gt;files_move_v2&lt;/A&gt; instead of &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_move" target="_blank"&gt;files_move&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:12:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722538#M31930</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-10-18T15:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.files_move Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722544#M31931</link>
      <description>&lt;P&gt;Looking to clarify: If I want to move a file from one folder to another, I should use files_move_v2 (from, to) where the from is the folder where the file is but this path doesn't include the file, and then the to folder is only the folder. Where do I clarify which file I am moving?&amp;nbsp; Or would this move all files in that folder?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:28:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722544#M31931</guid>
      <dc:creator>Mgymnasts</dc:creator>
      <dc:date>2023-10-18T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.files_move Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722546#M31932</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1749688"&gt;@Mgymnasts&lt;/a&gt; When using files_move_v2, the 'from_path' should be the full path of the item you want to move.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to move an entire folder and its contents, you would specify the 'from_path' like '/Child Folder/Grandchild Folder', which would move just 'Grandchild Folder' and its contents, or '/Child Folder', which would move 'Child Folder' and its contents, which would also include 'Grandchild Folder' in this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to move a specific file only, you would specify the 'from_path' like '/Child Folder/Grandchild Folder/filename.csv'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise, the 'to_path' should be the full path of where you want to put the item, either a folder path or a file path accordingly. For example, to move a specific file only that would be like '/Child Folder/Processed/filename.csv'.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:33:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-files-move-Error/m-p/722546#M31932</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-10-18T15:33:41Z</dc:date>
    </item>
  </channel>
</rss>

