The files in Google domain that I administer have gotten into a bad state; there are thousands of files residing in the root directory. I want to identify these files and mo
In Java:
List result = new ArrayList();
Files.List request = drive.files().list();
request.setQ("'root'" + " in parents");
FileList files = null;
files = request.execute();
for (com.google.api.services.drive.model.File element : files.getItems()) {
System.out.println(element.getTitle());
}
'root' is the parent folder, if the file or folder is in the root