get_dataset_files
Return a paginated file listing for a dataset or a specific group.
Depending on how deep gindex is in the group hierarchy, this returns
either actual file rows or another layer of subgroup summaries — there's
no way to tell in advance which you'll get. If you get subgroups, read
the gindex (or url) off a row and call again with that gindex to go one
level deeper; gindex values are dataset-specific and can't be guessed.
A shallow gindex on a large dataset can return a very large response
(thousands of files) — the file-row portion of the response is capped at
500 rows (look for "_truncated": true). Two ways to avoid hitting that
cap instead of drilling down group by group: pass filter_wfile with a
filename pattern (e.g. a date like "20220808") to filter down to matching
files, or page through a known group's results with `page`. filter_wfile
only filters actual file rows, so it has no effect at a gindex that's
still returning a subgroup summary rather than files — if a first attempt
comes back unfiltered, descend one level (see get_file_groups) and retry
there.
Args:
dsid: Dataset ID (dNNNNNN), e.g. d083002
gindex: Optional group index to filter files
page: Page number to fetch (for a group with more files than fit on one page)
filter_wfile: Filter files by name pattern, e.g. "20220808" to match a date
fl: File list source (defaults to "web" server-side)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fl | No | ||
| dsid | Yes | ||
| page | No | ||
| gindex | No | ||
| filter_wfile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |