private Request.Builder buildCreateUploadSessionPath(
      DownloadableFile item, IdempotentImportExecutor idempotentImportExecutor) {
    String createSessionUrl;
    if (Strings.isNullOrEmpty(item.getFolderId())) {
      createSessionUrl = String.format(albumlessMediaUrlTemplate, item.getName(), UPLOAD_PARAMS);
    } else {
      String oneDriveFolderId = idempotentImportExecutor.getCachedValue(item.getFolderId());
      createSessionUrl =
          String.format(uploadMediaUrlTemplate, oneDriveFolderId, item.getName(), UPLOAD_PARAMS);
    }

    return new Request.Builder().url(createSessionUrl);
  }
Forms the URL to create an upload session.

<p>Creates an upload session path for one of two cases:

<ul>
  <li>- 1) POST to /me/drive/items/{folder_id}:/{file_name}:/createUploadSession
  <li>- 2) GET {uploadurl} from
      /me/drive/items/root:/photos-video/{file_name}:/createUploadSession
</ul>
extensions/data-transfer/portability-data-transfer-microsoft/src/main/java/org/datatransferproject/transfer/microsoft/media/MicrosoftMediaImporter.java