Skip to main content

Module removal

Module removal 

Source
Expand description

Shared pieces of xil remove-show and xil remove-episode: the removal item model, size formatting, and deletion.

Structs§

Item

Enums§

Kind

Functions§

delete
Delete every existing item, logging each removal. Returns files removed.
fmt_bytes
_fmt_bytes: B / KB / MB / GB with Python’s .1f / .2f rounding.
input
Python input(prompt).strip(): prompt to stdout without a newline, one line from stdin. Empty string on EOF.
rel_display
item.path.relative_to(root) with the same fallback to the full path.
walk_files 🔒