<?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: Unable to download file to a desired path via files_download_to_file using the python api in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239450#M13315</link>
    <description>In this sample, the `files_download_to_file` method will save the file to '/home/ubuntu-mate/Desktop/test/Resume BigRed.pdf'.&lt;BR /&gt;&lt;BR /&gt;Separately, you're calling `open` and `f.write(metadata)`, which will save the file metadata (not the file content) to a file 'Resume BigRed.pdf' in the current directory. If you don't want that file, remove your `open` and `write` calls.</description>
    <pubDate>Thu, 31 Aug 2017 18:08:43 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-08-31T18:08:43Z</dc:date>
    <item>
      <title>Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/238999#M13253</link>
      <description>&lt;P&gt;I am using the files_download_to_file function to try and download a file from my dropbox to a specific location. &amp;nbsp;As parameters I am giving it '/home/user/Desktop' and it is saying IOError: [Errno 21] Is a directory. &amp;nbsp;I am not sure what is wrong with this and would greatly appreciate any support.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/238999#M13253</guid>
      <dc:creator>peytonshc</dc:creator>
      <dc:date>2019-05-29T09:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239073#M13267</link>
      <description>&lt;P&gt;When calling &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_download_to_file" target="_self"&gt;files_download_to_file&lt;/A&gt;, the `download_path` parameter should be the full local path where you want to save the file, including the file name and extension. So, instead of&amp;nbsp;'/home/user/Desktop', you should supply something like&amp;nbsp;'/home/user/Desktop/filename.ext'.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 14:53:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239073#M13267</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-29T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239111#M13274</link>
      <description>&lt;P&gt;I tried that before but got TypeError: 'FileMetadata' object is not iterable when I try and write it.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 16:58:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239111#M13274</guid>
      <dc:creator>peytonshc</dc:creator>
      <dc:date>2017-08-29T16:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239142#M13277</link>
      <description>It looks like there's a mistake in the documentation (we'll get that fixed up), but the files_download_to_file method actually just returns a FileMetadata object (not a tuple), so make sure you're not trying to unpack the result.&lt;BR /&gt;&lt;BR /&gt;I.e., your code should look something like `metadata = dbx.files_download_to_file(...)` not `metadata, result = dbx.files_download_to_file(...)`.</description>
      <pubDate>Tue, 29 Aug 2017 19:29:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239142#M13277</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-29T19:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239431#M13310</link>
      <description>&lt;P&gt;That works now but I am curious why when I run the program it download the files to the directed directory as well as the current directory. &amp;nbsp;I would like this to just happen in the directed directory.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 16:32:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239431#M13310</guid>
      <dc:creator>peytonshc</dc:creator>
      <dc:date>2017-08-31T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239436#M13312</link>
      <description>The files_download_to_file method should just download a single copy of the file to wherever you specify in the download_path parameter. Can you share code that reproduces the unexpected behavior you're seeing?</description>
      <pubDate>Thu, 31 Aug 2017 17:09:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239436#M13312</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-31T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239442#M13313</link>
      <description>&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;with open('Resume BigRed.pdf', "wb") as f:
&amp;nbsp; &amp;nbsp; try:
    &amp;nbsp; &amp;nbsp; metadata = dbx.files_download_to_file('/home/ubuntu-mate/Desktop/test/Resume BigRed.pdf', "/Resume BigRed.pdf")&lt;BR /&gt;        f.write(metadata)
&amp;nbsp; &amp;nbsp; except TypeError:&lt;BR /&gt;        print("Ignoring TypeError")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the try to avoid the TypeError for entering metadata but it runs.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 18:07:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239442#M13313</guid>
      <dc:creator>peytonshc</dc:creator>
      <dc:date>2017-08-31T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to download file to a desired path via files_download_to_file using the python api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239450#M13315</link>
      <description>In this sample, the `files_download_to_file` method will save the file to '/home/ubuntu-mate/Desktop/test/Resume BigRed.pdf'.&lt;BR /&gt;&lt;BR /&gt;Separately, you're calling `open` and `f.write(metadata)`, which will save the file metadata (not the file content) to a file 'Resume BigRed.pdf' in the current directory. If you don't want that file, remove your `open` and `write` calls.</description>
      <pubDate>Thu, 31 Aug 2017 18:08:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-download-file-to-a-desired-path-via-files-download-to/m-p/239450#M13315</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-31T18:08:43Z</dc:date>
    </item>
  </channel>
</rss>

