tree

Display the directory structure of a path in a tree-like format
 USAGE:
     ./zig-out/bin/tree [OPTIONS] [--] [directory]

 OPTIONS:
  -m, --mode STRING                Line drawing characters. (valid: ascii|box|dos)(default: box)
  -a, --all                        All files are printed.
  -s, --size                       Print the size of each file in bytes along with the name.
  -d, --directory                  List directories only.
  -L, --level INTEGER              Max display depth of the directory tree.
  -v, --version                    Print version.
  -h, --help                       Print help information.

Demo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
$ ./zig-out/bin/tree src
src
├──bin
│  ├──loc.zig
│  ├──night-shift.zig
│  ├──pidof.zig
│  ├──repeat.zig
│  ├──tree.zig
│  ├──util.zig
│  └──yes.zig
└──mod
   ├──pretty-table.zig
   └──simargs.zig

1 directories, 4 files
Last modified September 28, 2024: refactor zip file directory structure (9e01903)