<?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: Filenames beginning with dot not found in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350552#M20101</link>
    <description>&lt;P&gt;Thanks for the report! Are you still seeing this now? I just tried uploading a file named ".empfs1.xml" and I was able to find it by searching via the API with a query ".empfs1.xml", so it could have been a transient issue.&lt;/P&gt;
&lt;P&gt;If you are still seeing this problem though, please &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; with the following additional details so we can check on this for you:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the affected account ID(s)&lt;/LI&gt;
&lt;LI&gt;the 'searchPath' value you're using&lt;/LI&gt;
&lt;LI&gt;the search results you get&lt;/LI&gt;
&lt;LI&gt;the full path of the '.empfs1.xml' file that you expect but is missing from the results&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(By the way, to clarify, &lt;A href="https://www.dropboxforum.com/2/files/search" target="_self"&gt;the "query" parameter&lt;/A&gt; does not support regular expressions.)&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 16:05:17 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-06-17T16:05:17Z</dc:date>
    <item>
      <title>Filenames beginning with dot not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350375#M20092</link>
      <description>&lt;P&gt;I've been working with the SwiftyDropbox API, and until recently everything was fine.&lt;/P&gt;
&lt;P&gt;But some time in the past few months, I'm now getting incorrect results when I search for a filename that begins with a dot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;?.&lt;/SPAN&gt;&lt;SPAN&gt;files&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;search&lt;/SPAN&gt;&lt;SPAN&gt;(path: searchPath, query: ".empfs1.xml").&lt;/SPAN&gt;&lt;SPAN&gt;response&lt;/SPAN&gt;&lt;SPAN&gt;(queue: &lt;/SPAN&gt;&lt;SPAN&gt;DispatchQueue&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;global&lt;/SPAN&gt;&lt;SPAN&gt;(qos: .&lt;/SPAN&gt;&lt;SPAN&gt;utility&lt;/SPAN&gt;&lt;SPAN&gt;), completionHandler: { response, error &lt;/SPAN&gt;&lt;SPAN&gt;in&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;if&lt;/SPAN&gt; &lt;SPAN&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; response = response &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;Files&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SearchResult&lt;/SPAN&gt;&lt;SPAN&gt;? {&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; response.&lt;/SPAN&gt;&lt;SPAN&gt;matches&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; {&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"No file file found for &lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;searchPath&lt;/SPAN&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN&gt;)&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;return&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&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;else&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; error = error {&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Dropbox server error searching &lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;searchPath&lt;/SPAN&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN&gt;)&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;handleResponseError&lt;/SPAN&gt;&lt;SPAN&gt;(error)&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;return&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;/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;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"file .empfs1.xml&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;FOUND for &lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;searchPath&lt;/SPAN&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN&gt;)&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; &lt;/SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This code will *not* find .empfs1.xml if it exists. &amp;nbsp;Leave off the leading dot, it's fine. new.empfs1.xml is fine. &amp;nbsp;.empfs1 isn't. &amp;nbsp;The files beginning with the dots are definitely there, both on the website and in the local folder, but search won't find them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I dunno; has something changed on the server end of the API recently, perhaps something to do with regular-expression matching?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:41:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350375#M20092</guid>
      <dc:creator>Jon B.1</dc:creator>
      <dc:date>2019-07-16T09:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filenames beginning with dot not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350377#M20093</link>
      <description>&lt;P&gt;Further update: &amp;nbsp;this behavior is visible through the HTTP endpoints as well, using the API Explorer, so it's not a Swift problem.&lt;/P&gt;&lt;P&gt;It would appear to be a server-side bug in regular-expression handling. &amp;nbsp;Note that searching for "\.empfs1.xml" does find .empfs1.xml -- and also empfs1.xml (without the dot) and new.empfs1.xml. So I suppose I can work around this by checking the multiple results to see if one is actually valid...&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 01:11:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350377#M20093</guid>
      <dc:creator>Jon B.1</dc:creator>
      <dc:date>2019-06-16T01:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filenames beginning with dot not found</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350552#M20101</link>
      <description>&lt;P&gt;Thanks for the report! Are you still seeing this now? I just tried uploading a file named ".empfs1.xml" and I was able to find it by searching via the API with a query ".empfs1.xml", so it could have been a transient issue.&lt;/P&gt;
&lt;P&gt;If you are still seeing this problem though, please &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; with the following additional details so we can check on this for you:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the affected account ID(s)&lt;/LI&gt;
&lt;LI&gt;the 'searchPath' value you're using&lt;/LI&gt;
&lt;LI&gt;the search results you get&lt;/LI&gt;
&lt;LI&gt;the full path of the '.empfs1.xml' file that you expect but is missing from the results&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(By the way, to clarify, &lt;A href="https://www.dropboxforum.com/2/files/search" target="_self"&gt;the "query" parameter&lt;/A&gt; does not support regular expressions.)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 16:05:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Filenames-beginning-with-dot-not-found/m-p/350552#M20101</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-06-17T16:05:17Z</dc:date>
    </item>
  </channel>
</rss>

