#xml #disk #scan #compatible #output #generate #linux

bin+lib gpscan

A tool to generate XML files compatible with GrandPerspective

4 releases

0.0.8 Jan 8, 2025
0.0.7 Dec 2, 2024
0.0.6 Oct 17, 2024
0.0.5 Oct 11, 2024
0.0.4 Oct 10, 2024

#409 in Filesystem

Download history 374/week @ 2024-10-09 162/week @ 2024-10-16 3/week @ 2024-10-23 2/week @ 2024-10-30 4/week @ 2024-11-06 1/week @ 2024-11-13 1/week @ 2024-11-20 110/week @ 2024-11-27 44/week @ 2024-12-04 16/week @ 2024-12-11 162/week @ 2025-01-08

162 downloads per month

MIT license

23KB
533 lines

gpscan

Cargo Build & Test Crates.io Crates.io

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

  • Recursively scans directories and files
  • Generates XML output compatible with GrandPerspective
  • Skips symbolic links to prevent infinite loops
  • Handles file permissions and errors

Installation

Downloading

You can download prebuilt binaries in the GitHub Releases.

Homebrew

homebrew tap

brew install kojix2/brew/gpscan

Building

cargo install gpscan

Usage

Basic usage

gpscan [OPTIONS] <directory>
gpscan ./foo > result.gpscan
gpscan / | gzip -c > result.gpscan.gz
  1. Transfer the result.gpscan file to your Mac.
  2. Open it in GrandPerspective.

Options

  -o, --output <FILE>          Output file (default: stdout)
  -A, --apparent-size          Use apparent size instead of disk usage [false]
  -m, --mounts                 Cross filesystem boundaries during scan [false]
  -z, --include-zero-files     Include zero-byte files in scan [false]
  -e, --include-empty-folders  Include empty folders in scan [false]
  -q, --quiet                  Suppress all informational messages [false]
  -h, --help                   Print help
  -V, --version                Print version

Development

git clone https://github.com/kojix2/gpscan.git
cd gpscan
cargo build --release

License

MIT

This project was created using the full assistance of ChatGPT.

Dependencies

~5.5MB
~94K SLoC