Skip to main content

list_text

Function list_text 

Source
pub fn list_text(dir: &Path) -> String
Expand description

Bounded ASCII listing of a scratchpad’s contents, for /scratchpad. Deterministic (sorted, directories recursed depth-first), relative paths, human-readable sizes, capped at [MAX_LIST_ENTRIES] lines with an explicit “more” marker. The lock file lives outside the advertised directory, so everything found here is user content.