GitHub

Scan your filesystem and get an XML file compatible with GrandPerspective on macOS to visualize disk usage.

gpscan [OPTIONS] <directory>
# File output (gzip by default, .gpscan is auto-appended)
gpscan . -o result
# Plain text file output (no gzip)
gpscan . -o result --no-gzip
# Gzip to stdout (useful for piping outside the scanned directory)
gpscan . --gzip > /tmp/result.gpscan
  -o, --output <FILE>            Output file (gzip by default, adds .gpscan)
  -A, --apparent-size            Use apparent size instead of disk usage
  -m, --mounts                   Cross filesystem boundaries during scan
  -Z, --zero-files               Include zero-byte files in scan
  -E, --empty-folders            Include empty folders in scan
  -q, --quiet                    Suppress all informational messages
  -z, --gzip                     Gzip-compress stdout (file output is gzip by default)
      --compression-level <0-9>  Gzip level when output is compressed (default: 6)
      --no-gzip                  Disable gzip for file output
  -f, --force                    Overwrite output file without prompt
  -h, --help                     Print help
  -V, --version                  Print version

This project includes code generated by AI tools.

Read the original on github.com ↗