Documentation

LSW: List Walker

LSW (List Walker) is a Python command-line utility inspired by ls for walking directories and producing browsable trees, file inventories, and export files.

The public package is available on PyPI.

See the GitHub Releases page for version history. LSW uses the MIT License; credit is appreciated but not required.

The MIT license permits commercial use and redistribution. Please do not present unchanged or minimally changed copies as original work or imply that unofficial distributions are official or endorsed.

This documentation describes the complete current behavior of the script, including its command-line interface, configuration files, filtering rules, output formats, interactive HTML report, and internal architecture.

Start here

Get started

Scan and integrate

Maintain and publish

The GUI is intentionally file-oriented, while stdout/stderr is documented as a CLI integration surface for applications and pipelines.

Use the guide in this order:

flowchart LR
	A[Install] --> B[Run CLI]
	B --> C[Configure]
	C --> D[Filter]
	D --> E[Choose output]
	E --> F[Integrate stdout]
	F --> K[Prepare AI context]
	B --> G[Use GUI]
	E --> H[Read HTML report]
	H --> I[Deploy docs]
	I --> J[Release package]

Quick start

Install LSW from PyPI:

py -m pip install lsw-directory-walker

For a source checkout, use py -m pip install . instead.

Then run it from any directory:

lsw
lsw --gui

The package installs Flet with LSW. The plain lsw command remains CLI-first; the GUI is explicitly selected with --gui.

From the repository root:

python lsw.py --path .

The default command creates tree_output.html and opens it in a browser. To create a plain-text tree instead:

python lsw.py --path . --type txt --out tree.txt --no-browser

To build this documentation site locally, install Retype and run:

retype start

To generate static files for deployment:

retype build

Retype reads the Markdown files in docs/ and writes the generated site to .retype/.

Requirements

  • Python 3.8 or newer is recommended for LSW.
  • The package installs Flet as its GUI dependency.
  • Retype is required only when building or previewing this documentation site.

Current implementation notes

The documentation describes the code as it exists today. In particular, hidden entries are skipped, the parallel CLI settings are currently parsed but unused, show_hidden is not wired into scanning, and --ext does not affect the TXT output branch.