Refresh folder index
drive_refresh_indexRefresh the saved folder index for large drives in time-boxed slices, re-listing stale or never-listed folders and saving progress so repeated calls complete indexing without changing Drive.
Instructions
Needs PROTON_DRIVE_INDEX=1. Refreshes the saved folder index of a huge drive in slices: re-lists folders last listed over maxAgeHours ago or never, oldest first, until timeBudgetMs, and saves progress. Repeat until complete:true (etaCalls). Younger folders are skipped. changes:true adds counts and up to 50 sample paths. Changes nothing on Drive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder to refresh (default /my-files). | |
| changes | No | Also report what changed. | |
| maxAgeHours | No | Re-list folders listed longer ago than this (default 24). | |
| timeBudgetMs | No | Stop listing after this long (default 25000). |