<?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: Listing subfolders with Java api v2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-subfolders-with-Java-api-v2/m-p/263531#M15398</link>
    <description>&lt;P&gt;OK, I found the answer here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-support/Get-the-modified-date-for-a-folder-or-file/td-p/184485" target="_self"&gt;https://www.dropboxforum.com/t5/API-support/Get-the-modified-date-for-a-folder-or-file/td-p/184485&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The short answer is that I need to test &lt;STRONG&gt;metadata&lt;/STRONG&gt; with &lt;STRONG&gt;instanceof&lt;/STRONG&gt; to see if it is an instance of &lt;STRONG&gt;FolderMetaData&lt;/STRONG&gt; or &lt;STRONG&gt;FileMetaData&lt;/STRONG&gt;. Java isn't my primary programming language so that was the last thing I would have thought of doing.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2018 20:41:21 GMT</pubDate>
    <dc:creator>SparkyNZ</dc:creator>
    <dc:date>2018-02-04T20:41:21Z</dc:date>
    <item>
      <title>Listing subfolders with Java api v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-subfolders-with-Java-api-v2/m-p/263523#M15396</link>
      <description>&lt;P&gt;I am using code such as the snippet below to retrieve file details from Dropbox. How can I tell which entries are folders?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought there would have been a member in FileMetadata but I am just not seeing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ListFolderResult result = &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().listFolder(&lt;SPAN&gt;"" &lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;( &lt;SPAN&gt;true &lt;/SPAN&gt;)&lt;BR /&gt;{&lt;BR /&gt;  &lt;SPAN&gt;for&lt;/SPAN&gt;( Metadata metadata : result.getEntries() )&lt;BR /&gt;  {&lt;BR /&gt;    String           sName        = metadata.getPathLower()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    FileMetadata     fileMetadata = (FileMetadata) metadata&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:15:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-subfolders-with-Java-api-v2/m-p/263523#M15396</guid>
      <dc:creator>SparkyNZ</dc:creator>
      <dc:date>2019-05-29T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Listing subfolders with Java api v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-subfolders-with-Java-api-v2/m-p/263531#M15398</link>
      <description>&lt;P&gt;OK, I found the answer here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-support/Get-the-modified-date-for-a-folder-or-file/td-p/184485" target="_self"&gt;https://www.dropboxforum.com/t5/API-support/Get-the-modified-date-for-a-folder-or-file/td-p/184485&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The short answer is that I need to test &lt;STRONG&gt;metadata&lt;/STRONG&gt; with &lt;STRONG&gt;instanceof&lt;/STRONG&gt; to see if it is an instance of &lt;STRONG&gt;FolderMetaData&lt;/STRONG&gt; or &lt;STRONG&gt;FileMetaData&lt;/STRONG&gt;. Java isn't my primary programming language so that was the last thing I would have thought of doing.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 20:41:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-subfolders-with-Java-api-v2/m-p/263531#M15398</guid>
      <dc:creator>SparkyNZ</dc:creator>
      <dc:date>2018-02-04T20:41:21Z</dc:date>
    </item>
  </channel>
</rss>

