<?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 SDK in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206278#M10023</link>
    <description>&lt;P&gt;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get_metadata" target="_self"&gt;Dropbox.files_get_metadata&lt;/A&gt;&amp;nbsp;is a method, which you can use to get metadata for a file or folder. &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;dropbox.files.FileMetadata&lt;/A&gt;&amp;nbsp;is the class used to represent metadata for a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, when you call&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get_metadata" target="_self"&gt;Dropbox.files_get_metadata&lt;/A&gt;&amp;nbsp;for a file, it will return an instance of&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;dropbox.files.FileMetadata&lt;/A&gt;. You can the get the server modified time via &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata.server_modified" target="_self"&gt;dropbox.files.FileMetadata.server_modified&lt;/A&gt;, that is, the server_modified attribute of the FileMetadata instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, that would look like this:&lt;/P&gt;
&lt;PRE&gt;metadata = dbx.files_get_metadata("/test.txt")
print("File: %s" % metadata.name)
print("Server modified time: %s" % metadata.server_modified)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 20:43:39 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-02-10T20:43:39Z</dc:date>
    <item>
      <title>python SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206272#M10022</link>
      <description>&lt;P&gt;what is the difference between Dropbox.files_get_metadata and dropbox.files.FileMetadata? Which one should I use to get file server_Modified time?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206272#M10022</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2019-05-29T09:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: python SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206278#M10023</link>
      <description>&lt;P&gt;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get_metadata" target="_self"&gt;Dropbox.files_get_metadata&lt;/A&gt;&amp;nbsp;is a method, which you can use to get metadata for a file or folder. &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;dropbox.files.FileMetadata&lt;/A&gt;&amp;nbsp;is the class used to represent metadata for a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, when you call&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get_metadata" target="_self"&gt;Dropbox.files_get_metadata&lt;/A&gt;&amp;nbsp;for a file, it will return an instance of&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;dropbox.files.FileMetadata&lt;/A&gt;. You can the get the server modified time via &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata.server_modified" target="_self"&gt;dropbox.files.FileMetadata.server_modified&lt;/A&gt;, that is, the server_modified attribute of the FileMetadata instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, that would look like this:&lt;/P&gt;
&lt;PRE&gt;metadata = dbx.files_get_metadata("/test.txt")
print("File: %s" % metadata.name)
print("Server modified time: %s" % metadata.server_modified)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 20:43:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206278#M10023</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-10T20:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: python SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206280#M10024</link>
      <description>&lt;P&gt;Thank you Greg for your quick reply. &amp;nbsp;The answer is very clear but dropbox documentation is hard to follow. &amp;nbsp;In it, the&amp;nbsp;Return type is:&lt;BR /&gt;dropbox.files.Metadata NOT&amp;nbsp;dropbox.files.FileMetadata&amp;nbsp;for Dropbox.files_get_metadata method. &amp;nbsp;I checked on&amp;nbsp;dropbox.files.Metadata and it does not include server_Modified attribute. &amp;nbsp;SO maybe your doc is not up to date?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:13:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206280#M10024</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2017-02-10T21:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: python SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206281#M10025</link>
      <description>&lt;P&gt;The documentation is accurate. &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;dropbox.files.FileMetadata&lt;/A&gt;&amp;nbsp;is a subclass of &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.Metadata" target="_self"&gt;dropbox.files.Metadata&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get_metadata" target="_self"&gt;files_get_metadata&lt;/A&gt;&amp;nbsp;method will return an instance of&amp;nbsp;dropbox.files.Metadata.&amp;nbsp;That will be an instance of&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FileMetadata" target="_self"&gt;dropbox.files.FileMetadata&lt;/A&gt;&amp;nbsp;for files, &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.FolderMetadata" target="_self"&gt;dropbox.files.FolderMetadata&lt;/A&gt;&amp;nbsp;for folders, or &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.files.DeletedMetadata" target="_self"&gt;dropbox.files.DeletedMetadata&lt;/A&gt;&amp;nbsp;for a deleted item.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use&amp;nbsp;isinstance to check if the instance is a file, etc., as shown here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/350e6e23feb2b5fb302e808695c228d49648ffdd/example/updown.py#L92" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-python/blob/350e6e23feb2b5fb302e808695c228d49648ffdd/example/updown.py#L92&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:21:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206281#M10025</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-10T21:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: python SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206289#M10026</link>
      <description>&lt;P&gt;Thank you. &amp;nbsp;This helps a lot. &amp;nbsp;Maybe your doc can have a page showing all the methods, then a page showing all the classes etc. &amp;nbsp;It is hard to follow when they are all mixed together.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:21:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206289#M10026</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2017-02-10T22:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: python SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206290#M10027</link>
      <description>Thanks for the feedback!</description>
      <pubDate>Fri, 10 Feb 2017 22:28:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/python-SDK/m-p/206290#M10027</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-10T22:28:03Z</dc:date>
    </item>
  </channel>
</rss>

