mirror of
https://github.com/rclone/rclone.git
synced 2026-10-28 14:28:38 -04:00
Directory listings showed every directory with a size of -1, so `rclone lsd` and `operations/list` couldn't say how big a directory was, and finding out meant walking it with `rclone size`. Microsoft Graph already returns each folder's `size` as the total size of its contents, and the backend read it but dropped it. Directories now carry that size, as they already carry the item count. Listing a directory's parent is enough to get the size of all its subdirectories, without listing the subdirectories themselves. OneDrive updates a folder's size in the background, so for a few minutes after a change inside it the size may be out of date. Fixes #7502