I've been working with the SwiftyDropbox API, and until recently everything was fine.
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:
client ?. files . search (path: searchPath, query: ".empfs1.xml"). response (queue: DispatchQueue . global (qos: . utility ), completionHandler: { response, error in
if let response = response as Files . SearchResult ? {
if response. matches . count == 0 {
print ( "No file file found for \ ( searchPath )" )
return
}
} else if let error = error {
print ( "Dropbox server error searching \ ( searchPath )" )
self . handleResponseError (error)
return
}
print ( "file .empfs1.xml FOUND for \ ( searchPath )" )
})
This code will *not* find .empfs1.xml if it exists. Leave off the leading dot, it's fine. new.empfs1.xml is fine. .empfs1 isn't. The files beginning with the dots are definitely there, both on the website and in the local folder, but search won't find them.
I dunno; has something changed on the server end of the API recently, perhaps something to do with regular-expression matching?
... View more