3 total_cargo_build_space
() {
9 find "$dir" -type f
-name Cargo.toml \
10 |
while read -r cargo_toml_path
12 target_path
=$
(dirname "$cargo_toml_path")/target
;
13 if test -d "$target_path"
15 du
-s "$target_path"; fi
17 |
awk '{tot += $1} END {print tot * 1024}' \
22 local -r dir
="${1-$HOME}"
24 total_cargo_build_space
"$dir"
This page took 0.06904 seconds and 4 git commands to generate.