github sharkdp/diskus v0.9.0

22 hours ago

Changes

  • Fixed directory counting to match du behavior:
    • Disk usage mode: directories are included (matches du -s)
    • Apparent size mode: directories are excluded (matches du -sb)

Features

  • Added --directories option with values auto/included/excluded to control whether directory sizes are counted

Library

  • Breaking: Complete redesign of the API
    • Renamed Walk to DiskUsage
    • Renamed FilesizeType to CountType
    • Changed to a builder pattern: DiskUsage::new(&paths).apparent_size().count()
    • count() now returns a DiskUsageResult struct instead of a tuple
    • new() now accepts impl IntoIterator<Item = P> where P: AsRef<Path>
  • Default number of workers (3× CPU cores) is now set in the library, not the CLI

Don't miss a new diskus release

NewReleases is sending notifications on new releases.