index – Barecat index
path (str) – Starting path
all_files (bool) – Show all files (-a)
summarize (bool) – Show only total (-s)
human_readable (bool) – Human readable sizes (-H)
max_depth (Optional[int]) – Maximum depth (-d)
output (Callable[[str], None]) – Function to output each line