<?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 Search Folder or File with SearchV2Async in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-Folder-or-File-with-SearchV2Async/m-p/587121#M27320</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to search for a specific folder in Dropbox using `Files.SearchV2Async` function in Dropbox sdk.&lt;/P&gt;
&lt;P&gt;The search option is set to look for only the active files/folders, but with this option set `Files.SearchV2Async` returns even the deleted folder (the result for the deleted folder has &lt;I&gt;IsDeleted&lt;/I&gt; flag as &lt;EM&gt;false&lt;/EM&gt;, while I expected this to be&amp;nbsp;&lt;EM&gt;true&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;Am I missing anything here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SearchOptions options = new SearchOptions(path,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; fileStatus: status.AsActive,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; filenameOnly: searchFiles);&lt;/P&gt;
&lt;P&gt;var res = await _client.Files.SearchV2Async(query, options);&lt;/P&gt;
&lt;P&gt;var matchesToConsider = res.Matches?.Where(x =&amp;gt; !x.Metadata.AsMetadata.Value.IsDeleted);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 06:29:09 GMT</pubDate>
    <dc:creator>ChandanT</dc:creator>
    <dc:date>2022-03-30T06:29:09Z</dc:date>
    <item>
      <title>Search Folder or File with SearchV2Async</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-Folder-or-File-with-SearchV2Async/m-p/587121#M27320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to search for a specific folder in Dropbox using `Files.SearchV2Async` function in Dropbox sdk.&lt;/P&gt;
&lt;P&gt;The search option is set to look for only the active files/folders, but with this option set `Files.SearchV2Async` returns even the deleted folder (the result for the deleted folder has &lt;I&gt;IsDeleted&lt;/I&gt; flag as &lt;EM&gt;false&lt;/EM&gt;, while I expected this to be&amp;nbsp;&lt;EM&gt;true&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;Am I missing anything here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SearchOptions options = new SearchOptions(path,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; fileStatus: status.AsActive,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; filenameOnly: searchFiles);&lt;/P&gt;
&lt;P&gt;var res = await _client.Files.SearchV2Async(query, options);&lt;/P&gt;
&lt;P&gt;var matchesToConsider = res.Matches?.Where(x =&amp;gt; !x.Metadata.AsMetadata.Value.IsDeleted);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 06:29:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-Folder-or-File-with-SearchV2Async/m-p/587121#M27320</guid>
      <dc:creator>ChandanT</dc:creator>
      <dc:date>2022-03-30T06:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search Folder or File with SearchV2Async</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-Folder-or-File-with-SearchV2Async/m-p/587942#M27366</link>
      <description>&lt;P&gt;To confirm, you're observing (1) that the search endpoint is returning a deleted folder when you specify active content only, and (2) that the returned search result also reporting that it is not deleted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not able to reproduce that behavior. A couple questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How are you sure that the deleted folder is actually deleted? Is it possible you have similarly named folders?&amp;nbsp; I would look to compare the result of &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata" target="_self"&gt;files/get_metadata&lt;/A&gt;&amp;nbsp;with the search result's metadata to ensure we have the same path / id / status.&lt;/LI&gt;
&lt;LI&gt;Is it possible that you deleted the folder at almost the same time as the search?&lt;/LI&gt;
&lt;LI&gt;Are you able to reproduce this outside of the SDK (like in &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/" target="_self"&gt;our API explorer&lt;/A&gt;) or is it specific to the SDK?&amp;nbsp; If the later, which version are you on?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 02 Apr 2022 18:11:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Search-Folder-or-File-with-SearchV2Async/m-p/587942#M27366</guid>
      <dc:creator>kylea</dc:creator>
      <dc:date>2022-04-02T18:11:11Z</dc:date>
    </item>
  </channel>
</rss>

