Skip to content

list_files

Every file on this site’s disk, newest first: its name, what kind of file it is, how big it is, the public URL it is served at, and a reference ready to write in a page. Typed inside bash, where help list_files prints the same.

Usage: list_files [options]
Every file on this site's disk, newest first: its name, what kind of
file it is, how big it is, the public URL it is served at, and a
`reference` ready to write in a page. The favicon (the icon browsers
show in a tab) is in the list, marked `kind: "favicon"`; an ordinary
image goes on a page as `<img src={assets["<key>"]}>`, or anywhere
else a path belongs (guide vzk/pages, Pictures). An issued invoice's
PDF, listed only where invoices may be read, is `kind: "document"`
and has no `reference`: it never goes on a page. A PDF, a video, a ZIP
or a recording is `kind: "pdf"`, `"video"`, `"archive"` or
`"audio"`, has no `reference` either, and a page links to its `url`,
which downloads it. Each file says its `folder` (null at the top), and
`folders` lists the Disk's folders.
Options:
--folder TEXT
A folder's id from list_files: only its files and the folders in it. Omit for every file and folder.
--json OBJECT
Every argument at once, as one JSON object; --json - reads it from stdin.