Bug: using DownloadItem is wrong, DownloadItemInternal would right.
By the way: the other overloaded method is correct.
/// <summary>
/// Downloads the contents of the item on OneDrive at the provided path to the full path provided
/// </summary>
/// <param name="path">Path to an item on OneDrive to download its contents of</param>
/// <param name="saveAs">Full path including filename where to store the downloaded file</param>
/// <returns>True if download was successful, false if it failed</returns>
public async Task<bool> DownloadItemAndSaveAs(string path, string saveAs)
{
var oneDriveItem = await GetItem(path);
return await DownloadItem(oneDriveItem, saveAs);
}
Bug: using DownloadItem is wrong, DownloadItemInternal would right. By the way: the other overloaded method is correct.