Skip to main content
← rust.krizaka.comkrizaka.com

Module files

Module files 

Source
Expand description

Listing and previewing files — always through the scope (ScopeStore::resolve), never directly.

Structs§

Entry
Limits
The limits of one call. The app passes what it needs (None keeps the kit default); a value above the hard ceiling is lowered to it, and a zero is raised to one, so no call is unbounded or empty.
Listing
Preview

Enums§

FilesError
Why a folder could not be listed or a file previewed. The path is not repeated.
Kind
What a file is, for the page. The wire values are the lower-case names, unchanged.

Constants§

CEILING_MAX_ENTRIES
CEILING_MAX_IMAGE_PREVIEW
CEILING_MAX_PDF_PREVIEW
CEILING_MAX_SEND
CEILING_MAX_TEXT_PREVIEW
DEFAULT_MAX_ENTRIES
DEFAULT_MAX_IMAGE_PREVIEW
DEFAULT_MAX_PDF_PREVIEW
DEFAULT_MAX_SEND
DEFAULT_MAX_TEXT_PREVIEW

Functions§

is_noise
A temp, partial or hidden name that is never listed nor reported by the folder watch.
kind_of
list_dir
Lists a directory already resolved through the scope. Hidden files are skipped; folders first, then by name; at most limits.entries() are kept, after the sort.
mime_of
preview
Previews a file already resolved through the scope.