<?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: Get size and date of file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/403208#M22002</link>
    <description>&lt;P&gt;Thank you very much!!!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 19:25:48 GMT</pubDate>
    <dc:creator>denickman</dc:creator>
    <dc:date>2020-03-19T19:25:48Z</dc:date>
    <item>
      <title>Get size and date of file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/402818#M21991</link>
      <description>&lt;P&gt;Hello guys. Please give me your advise. I use Swift Dropbox API request (&lt;SPAN&gt;client.&lt;/SPAN&gt;files&lt;SPAN&gt;.&lt;/SPAN&gt;listFolder) for getting all folders/files recursively. In response I get description for every entry such as:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Description: {&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"client_modified" = "2015-10-12T16:35:08Z";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"content_hash" = ca84996436ae8c430930029ed076c737fadc636556edc6cbbbe30a2d37a4c29e;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;id = "id:hpY6wdEzzkAAAAAAAAAADg";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"is_downloadable" = 1;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;name = "2601130556_1154272064.jpg";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"path_display" = "/folderOne/2601130556_1154272064.jpg";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"path_lower" = "/folderone/2601130556_1154272064.jpg";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;rev = d3e1412dd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"server_modified" = "2015-10-12T16:35:08Z";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;size = 886663;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;so the problem that descriptions has already been serialized from&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;open&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;var&lt;/STRONG&gt;&lt;/SPAN&gt; description: &lt;SPAN&gt;String&lt;/SPAN&gt; {&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;return&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;SerializeUtil&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;prepareJSONForSerialization&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;ListFolderResultSerializer&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;serialize&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;self&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;The question is how can I get (serialize) size and client_modified date from this if it is a string-value already? Please help me!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 09:30:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/402818#M21991</guid>
      <dc:creator>denickman</dc:creator>
      <dc:date>2020-03-18T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get size and date of file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/402961#M21994</link>
      <description>&lt;P&gt;You can access fields like size, etc., via the fields on the &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Files/FileMetadata.html" target="_self"&gt;FileMetadata&lt;/A&gt; type, like this:&lt;/P&gt;
&lt;PRE&gt;client.files.listFolder(path: path).response { (result, error) in
    if let listing = result {
        for entry in listing.entries {
            switch entry {
                case let fileMetadata as Files.FileMetadata:
                    print("File name: \(fileMetadata.name)")
                    print("File size: \(fileMetadata.size)")
                    print("File server modified time: \(fileMetadata.serverModified)")
                    print("File client modified time: \(fileMetadata.serverModified)")
                default:
                    print("other")
            }
        }
        // check listing.hasMore to see if there are more entries to retrieve
    } else {
       print(error!)
   }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:42:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/402961#M21994</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-03-18T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get size and date of file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/403208#M22002</link>
      <description>&lt;P&gt;Thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 19:25:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-size-and-date-of-file/m-p/403208#M22002</guid>
      <dc:creator>denickman</dc:creator>
      <dc:date>2020-03-19T19:25:48Z</dc:date>
    </item>
  </channel>
</rss>

