ashlr

ashlr__ls

Gitignore-aware directory listing with size metadata. Compact columnar output with elision past maxEntries.

ashlr__ls lists the contents of a directory with file sizes, respecting .gitignore. Output is compact — entries are elided past maxEntries with a count summary.

Parameters

ParameterTypeRequiredDescription
pathstringnoDirectory to list (default: cwd).
sizesbooleannoInclude human-readable file sizes (default: true).
maxEntriesnumbernoCap on entries shown (default: 80, max: 1000).
bypassSummarybooleannoReturn every entry without elision.

When to use vs ashlr__tree

SituationUse
Single directory, need file sizes quicklyashlr__ls
Recursive view of a subtreeashlr__tree
Find files matching a pattern recursivelyashlr__glob

On this page