Fixed support for restoring Drive files

This commit is contained in:
Kenneth Skovhede
2026-02-16 16:40:30 +01:00
parent 28de585e91
commit 1b1ee0a419
10 changed files with 376 additions and 142 deletions
@@ -25,7 +25,8 @@ internal class DriveFileSourceEntry(string parentPath, File file, DriveService d
if (cancellationToken.IsCancellationRequested) yield break;
yield return new DriveFileCommentsSourceEntry(this.Path, file, driveService);
if (!GoogleMimeTypes.IsGoogleSite(file.MimeType) && !GoogleMimeTypes.IsShortcut(file.MimeType))
// Skip revisions for Google Workspace files (Docs, Sheets, Slides, Sites, Shortcuts) as they cannot be exported
if (!GoogleMimeTypes.IsGoogleSite(file.MimeType) && !GoogleMimeTypes.IsShortcut(file.MimeType) && !GoogleMimeTypes.IsGoogleDoc(file.MimeType))
{
if (cancellationToken.IsCancellationRequested) yield break;
yield return new DriveFileRevisionsSourceEntry(this.Path, file, driveService);