<?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: Python API V2 Metadata of root folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228634#M12387</link>
    <description>&lt;P&gt;Thanks, Greg. That solved it. One last question: I'm&amp;nbsp;using the funciton you mentioned as follows:&lt;/P&gt;
&lt;P&gt;'client.files_list_folder('').entries' ; it yields a FileMetadata response with the files' properties. Having that said, I noticed in the tutorial that you could pull the name of each file, but I'm also interested in pulling the size as well. I'm trying the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;for i in client.files_list_folder("").entries:
&amp;nbsp; &amp;nbsp; print(i.size)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it's not working out. To me it's weird because I'm able to pull out the name property much in the same way. I'm not sure what's exactly wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry if this is a basic question, I'm starting out with python and the Dropbox API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 19:47:21 GMT</pubDate>
    <dc:creator>fapb88ve</dc:creator>
    <dc:date>2017-06-22T19:47:21Z</dc:date>
    <item>
      <title>Python API V2 Metadata of root folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228433#M12382</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see here that the previous version of the API had a way to check for the metadata of the root folder, but it seems that for this version of the API it is not supported. Is there anyway in particular that I could access that in the root folder? Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228433#M12382</guid>
      <dc:creator>fapb88ve</dc:creator>
      <dc:date>2019-05-29T09:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python API V2 Metadata of root folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228462#M12383</link>
      <description>&lt;P&gt;Yes, you should use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder" target="_self"&gt;files_list_folder&lt;/A&gt;&amp;nbsp;and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder_continue" target="_self"&gt;files_list_folder_continue&lt;/A&gt;&amp;nbsp;to list the contents of any folder, including root. The root path is identified by the empty string "".&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 00:40:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228462#M12383</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-22T00:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python API V2 Metadata of root folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228634#M12387</link>
      <description>&lt;P&gt;Thanks, Greg. That solved it. One last question: I'm&amp;nbsp;using the funciton you mentioned as follows:&lt;/P&gt;
&lt;P&gt;'client.files_list_folder('').entries' ; it yields a FileMetadata response with the files' properties. Having that said, I noticed in the tutorial that you could pull the name of each file, but I'm also interested in pulling the size as well. I'm trying the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;for i in client.files_list_folder("").entries:
&amp;nbsp; &amp;nbsp; print(i.size)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it's not working out. To me it's weird because I'm able to pull out the name property much in the same way. I'm not sure what's exactly wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry if this is a basic question, I'm starting out with python and the Dropbox API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 19:47:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228634#M12387</guid>
      <dc:creator>fapb88ve</dc:creator>
      <dc:date>2017-06-22T19:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python API V2 Metadata of root folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228755#M12396</link>
      <description>&lt;P&gt;The &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.ListFolderResult.entries" target="_self"&gt;ListFolderResult.entries&lt;/A&gt;&amp;nbsp;array contains &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.Metadata" target="_self"&gt;Metadata&lt;/A&gt; objects. These can represent files, folders, or deleted items. &amp;nbsp;The entry would be a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;FileMetadata&lt;/A&gt;, &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.FolderMetadata" target="_self"&gt;FolderMetadata&lt;/A&gt;, or &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.DeletedMetadata" target="_self"&gt;DeletedMetadata&lt;/A&gt;, respectively. These are all subclasses of&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.Metadata" target="_self"&gt;Metadata&lt;/A&gt;, but &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.FileMetadata.size" target="_self"&gt;size&lt;/A&gt; is only available on&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;FileMetadata&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you should do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;for entry in client.files_list_folder("").entries:
    print(entry.name)
    if isinstance(entry, dropbox.files.FileMetadata):
        print(entry.size)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 19:51:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-V2-Metadata-of-root-folder/m-p/228755#M12396</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-22T19:51:45Z</dc:date>
    </item>
  </channel>
</rss>

