Skip to content

v0.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Dec 23:56

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