title: C# Google Drive SDK Why I cannot search item by its name?
body: <p>I have strange problem.</p>
  
  <p>I have some folders in my Google Drive, and one is named <code>myFolder</code>. That folder has visibility option set to <code>Anyone with the link</code>.</p>
  
  <p>I want to get that folder ID. To do so, I have the following code</p>
  
  <pre><code>ChildrenResource.ListRequest request = Google_DriveService.Children.List("root");
  
  request.Q = "mimeType='application/vnd.google-apps.folder' and title='myFolder' and trashed=false";
  
  try
      {
          ChildList children = request.Fetch();
  
          return children.Items;
      }
      catch (Exception e)
      {
          throw e;
      }
  </code></pre>
  
  <p>which throws error 500. But, if I change the query to <code>"mimeType='application/vnd.google-apps.folder' and trashed=false";</code> I get the list of the folders, but there is no posibility to know which folder in that list is the one that I want.</p>
  
  <p>So</p>
  
  <p>1) why I get that error 500 if I pass the folder name inside that query ?</p>
  
  <p>2) How to get folder details (e.g. its name) if I have ID ?</p>
  
  <h2>EDIT</h2>
  
  <p>OK, I've changed the code as you guys suggested, now I don't get the error, but the folder is still not found. It is placed in the <code>root</code> folder.</p>
  
  <pre><code> var request = Google_DriveService.Files.List();
  
   request.Q = "mimeType='application/vnd.google-apps.folder' and title='myFolder' and trashed=false";
  
   var children = request.Fetch();
  
   return children.Items.Count &gt; 0 ? children.Items.First().Id : null;
  </code></pre>