<?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: How to get a path to a Dropbox file in order to use the files_download function in python? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270487#M15984</link>
    <description>&lt;P&gt;Yes, that's all that is required. The path would be the remote path to the desired file inside the Dropbox account. For example, for a file named "myfile.txt" inside a folder named "Documents", the path would be "/documents/myfile.txt".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also get these values from the API, e.g., using &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder_continue" target="_blank"&gt;files_list_folder_continue&lt;/A&gt;. (Call&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;with the path "" to list the root.) You would use the resulting &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.Metadata.path_lower" target="_self"&gt;Metadata.path_lower&lt;/A&gt;&amp;nbsp;for the desired file.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2018 14:37:47 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-03-29T14:37:47Z</dc:date>
    <item>
      <title>How to get a path to a Dropbox file in order to use the files_download function in python?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270413#M15980</link>
      <description>&lt;P&gt;As a real newbye in python I'm trying to download a single file from my dropbox account.&lt;/P&gt;&lt;P&gt;I've got the Dropbox token and written such a function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    def download_file():
        dbx = dropbox.Dropbox(DROPBOXTOKEN)
        # Check that the access token is valid
        try:
            dbx.users_get_current_account()
        except AuthError as err:
            sys.exit("ERROR: Invalid access token; try re-generating an access token from the app console on the web.")
        with open("//", "w") as f:
            metadata, res = dbx.files_download(path=DROPPATH)
            f.write(res.content)&lt;/PRE&gt;&lt;P&gt;As far as I can understand, the only data I need are DROPBOXTOKEN (i've got) and DROPPATH (the full pathh to the file in Dropbox space.&amp;nbsp; Is it true? How can I get the DROPPATH ? Can I get it accessing my web Dropbox&amp;nbsp; account (if not, how can I do?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270413#M15980</guid>
      <dc:creator>jundo</dc:creator>
      <dc:date>2019-05-29T09:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a path to a Dropbox file in order to use the files_download function in python?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270487#M15984</link>
      <description>&lt;P&gt;Yes, that's all that is required. The path would be the remote path to the desired file inside the Dropbox account. For example, for a file named "myfile.txt" inside a folder named "Documents", the path would be "/documents/myfile.txt".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also get these values from the API, e.g., using &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder_continue" target="_blank"&gt;files_list_folder_continue&lt;/A&gt;. (Call&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_blank"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;with the path "" to list the root.) You would use the resulting &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.Metadata.path_lower" target="_self"&gt;Metadata.path_lower&lt;/A&gt;&amp;nbsp;for the desired file.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:37:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270487#M15984</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-29T14:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a path to a Dropbox file in order to use the files_download function in python?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270774#M15999</link>
      <description>&lt;P&gt;That is it!&lt;/P&gt;&lt;P&gt;I wrongly wrote the pathname with backslash (doubled of course),..&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 16:16:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-a-path-to-a-Dropbox-file-in-order-to-use-the-files/m-p/270774#M15999</guid>
      <dc:creator>jundo</dc:creator>
      <dc:date>2018-04-01T16:16:32Z</dc:date>
    </item>
  </channel>
</rss>

