I am creating an application using Google Drive API in .Net using the Google API .Net client library.
In that list request get all files from root folder as well as from child folders and shared files. I don't want to list them all. I want list of files which are available in root folders only, not from sub folders. Hows that possible?
My code is below :
FilesResource.ListRequest listRequest = service.Files.List();
var files = listRequest.Execute();
for that I have define scope as
var Scopes = { DriveService.Scope.Drive };