Skip to content

0.1.0

Latest

Choose a tag to compare

@rollecode rollecode released this 31 Jul 17:33
· 4 commits to master since this release
  • Add lc, an ncdu-style disk browser that ranks by how long files have gone unused
  • Rank by largest-most-unused first: size and age as one number, the bytes untouched since the threshold. s gives plain size
  • Take "unused" from the newer of atime and mtime, and warn when the mount is noatime or relatime. T switches source
  • Move the threshold live with - and +, from 7 days to 10 years
  • Add F for a flat list of every unused file below the cursor, and f to hide what is still in use
  • Never follow symlinks, so nothing is counted twice and no loop can trap the walk. Hardlinks count once
  • Scan one filesystem by default, unlike ncdu; others show as > and -X descends into them. Overlay and FUSE mounts stay out either way
  • Walk in parallel, capped at six threads because the work is syscall-bound: / in 1.9s for 3.27M entries
  • Abort a scan on q in 0.15s, checked per entry rather than per directory
  • Match du byte for byte on disk usage. Apparent size counts directory inodes like ncdu, so it sits above du -sb
  • Confirm every delete and default to no. space marks a batch for D, -r disables deleting
  • Colour by age, grey to neon magenta, every colour above 4.5:1 contrast. Truecolor, 256 colours or none
  • Keep the tree in a flat arena, so re-ranking a million nodes after a threshold change is one linear pass
  • Carry over the rest of ncdu: sorting, graphs, item counts, apparent size, excludes, CACHEDIR.TAG, export and import, shell-out, rescan