diff --git a/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs b/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs index 7c54c24d..4c39bbe0 100644 --- a/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs +++ b/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs @@ -85,6 +85,8 @@ public static async Task IndexAsync(WebDirectory webDirectory) listRequest.Q = $"'{folderId}' in parents"; listRequest.PageToken = nextPageToken; listRequest.Fields = "nextPageToken, files(id, name, mimeType, size)"; + listRequest.IncludeItemsFromAllDrives = true; + listRequest.SupportsAllDrives = true; Google.Apis.Drive.v3.Data.FileList fileList = await listRequest.ExecuteAsync(); foreach (Google.Apis.Drive.v3.Data.File file in fileList.Files.OrderByDescending(f => f.MimeType == FolderMimeType).ThenBy(f => f.Name))