A library synced with its Sync button lies beside the account's UserFolder (%USERPROFILE%\<tenant>\<site> - <library>), so a portable copy unpacked there kept .\data inside a synchronised folder. OneDriveFolders.SyncRoots also reads HKCU\Software\SyncEngines\Providers\OneDrive\*\MountPoint, where OneDrive registers every folder it syncs (the location Office reads), and takes the registry root as a parameter for tests on a scratch key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC