title: Google Drive queryForFilesList not returning any results
body: <p>I'm currently having issues with the iOS Google Drive SDK. I'm using <a href="https://developers.google.com/drive/ios/devguide/queries" rel="nofollow">GTLQueryDrive queryForFilesList</a> to search for a file in my Google Drive. All the files I want have a path in the format <em>directory-name</em>/<em>file-name</em>. Since the SDK/API doesn't allow searching for files using a full path, I'm using the following query to ultimately get it's downloadUrl. I'm using a query in the following format:</p>
  
  <pre><code>((title = 'directory-name') AND ('root' in parents) AND (mimeType = 'application/vnd.google-apps.folder')) OR
  ((title = 'file-name') AND (not 'root' in parents) AND (mimeType != 'application/vnd.google-apps.folder'))
  </code></pre>
  
  <p>The first line is meant to find all directories in the root directory whose name matches mine, and the second line should match all files with the same name. This should return the directory i'm looking for, the file i'm looking for, and maybe some other stuff (e.g. files with the same name in other directories). I have some code to figure out which file is the correct one.</p>
  
  <p>The problem I'm having is that sometimes I get no results from the query. This generally happens after I rename the file, and rename it back, or other things like that. The weird part is that if I run either of the two lines of the query independently, it returns correctly, but together they don't.</p>
  
  <p>Any help would be greatly appreciated, and I would gladly provide more information if required.</p>
  
  <p>And yes, I'm using the kGTLAuthScopeDrive scope.</p>
  
  <p>The ideal solution would be if I could just search using a full path, so if there's a way to do this, then I'm not aware.</p>