OneDrive file system support for TagBites.IO, built on Microsoft Graph. Browse, read and write a user's OneDrive (or a specific drive by id) through the same FileSystem API used for local disk and other storages.
dotnet add package TagBites.IO.OneDrive
Targets netstandard2.1. Depends on Microsoft.Graph and Azure.Core.
// Using an already-acquired Microsoft Graph access token (e.g. via MSAL)
using var fs = OneDriveFileSystem.Create(accessToken);
var file = fs.GetFile("/reports/summary.txt");
file.WriteAllText("Hello world!");
var content = file.ReadAllText(); // "Hello world!"Connection options, capabilities and limits: documentation.