Read site files
files_readLists files and folders of the site file manager, returns file info and quota, reads text files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | List page, from 1. | |
| path | No | Clean path without edge slashes, passed as a parameter (never as a URL suffix). Empty string is the site root; content_get, content_put and mkdir need a non-empty path. Allowed bytes are A-Z a-z 0-9 . _ / -; segments cannot be empty, ".", "..", or start with a dot. Folder for list, info, upload, upload_url and move; file for content_get and content_put; new folder for mkdir; source for rename, move and delete. | |
| sort | No | list: name (default), size, or mtime. Anything else is treated as name. | |
| limit | No | list: the earlier name of per_page; per_page wins when both are set, and 0 counts as not set. | |
| order | No | list: asc (default). Only desc changes direction. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| detail | No | Record form of a paged list. brief (default): name, path, type, size, objects in a folder and modification time (UTC, ISO 8601). Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from. | |
| filter | No | list: a quota.limits.filters name, or a comma-separated extension list (png,jpg). Unknown names are ignored. | |
| offset | No | Records to skip from the start of a list; overrides page. A list reply cut at its size limit names the offset that follows in next. | |
| per_page | No | Records per page: 1-50, 20 by default, larger values count as 50. |