private MediaAlbum tryConvertDriveItemToMediaAlbum(MicrosoftDriveItem driveItem, UUID jobId) {
    if (!driveItem.isFolder()) {
      return null;
    }

    MediaAlbum mediaAlbum = new MediaAlbum(driveItem.id, driveItem.name, driveItem.description);
    monitor.debug(
        () -> String.format("%s: Microsoft OneDrive exporting album: %s", jobId, mediaAlbum));
    return mediaAlbum;
  }
Exports Microsoft OneDrive photos using the Graph API.

<p>Converts folders to media albums.
extensions/data-transfer/portability-data-transfer-microsoft/src/main/java/org/datatransferproject/transfer/microsoft/media/MicrosoftMediaExporter.java