private PhotoAlbum tryConvertDriveItemToPhotoAlbum(MicrosoftDriveItem driveItem, UUID jobId) {

    if (driveItem.folder != null) {
      PhotoAlbum photoAlbum = new PhotoAlbum(driveItem.id, driveItem.name, driveItem.description);
      monitor.debug(
          () -> String.format("%s: Microsoft OneDrive exporting album: %s", jobId, photoAlbum));
      return photoAlbum;
    }

    return null;
  }
Exports Microsoft OneDrive photos using the Graph API.

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