FilesResource.ListRequest list = DriveService.Files.List();
list.Q = "mimeType = 'application/vnd.google-apps.folder' and trashed = false";
list.MaxResults = 500;
FileList folders = list.Fetch<FileList>();
Above piece of code returns all folders but my requirement is to get only orphan folders which are at same level of 'My Drive' and 'Shared with me'.
I could do a looping through each folder based on "folder.Parents.Count == 0" condition but it is too expensive for me. Does any one know to get only orphan components by using Google Drive query?