Users need to see at a glance what fills a disk and to remove the largest entries without digging through a file manager. The treemap makes sizes comparable, the scan runs off the UI thread, and removing an entry updates the tree in place instead of rescanning.
13 lines
363 B
Bash
Executable File
13 lines
363 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Configure, build and launch the disk cleaner. Nothing is scanned unless a
|
|
# folder is given: ./run.sh ~/Téléchargements
|
|
set -euo pipefail
|
|
|
|
root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
build="$root/build"
|
|
|
|
cmake -B "$build" -S "$root" -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build "$build" --parallel
|
|
|
|
exec "$build/fws-diskcleaner" "$@"
|