Find the largest files (server-side scan)
zspace_bigfilesList the largest files under the given directories, biggest first.
Instructions
List the largest files under the given directories, biggest first.
Use to find cleanup candidates. The NAS scans server-side, which is far faster than walking: a 7k-file tree returns in ~2 seconds versus ~765 requests and ~10 seconds client-side. Returns {complete, scanned, matched, files: [{name, path, bytes, modify_time}]}.
There is a single shared task slot, so this call clears any stale task
before starting one; that is harmless but means two concurrent bigfiles
scans would interfere. Check complete -- if the timeout elapsed the
results are partial. Read-only.
For a directory's total size use zspace_du; for pool-level accounting use zspace_usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many largest matches to return | |
| paths | Yes | Directories to scan, e.g. ["/sata11/my/data"] | |
| min_size_mib | No | Only report files at least this many MiB (default 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||