PnP PowerShell is including version history in folder size — how do I get size based on latest version only?
When pulling folder sizes with PnP PowerShell, it includes all version history, not just the current file. Looping through File.Versions and grabbing the latest manually works but is painfully slow at scale.
Anyone know a faster way to calculate SharePoint folder/site storage based on latest version only? Graph API, storage metrics endpoint, anything better than iterating every version of every file?