Changes
- Fixed directory counting to match
dubehavior:- Disk usage mode: directories are included (matches
du -s) - Apparent size mode: directories are excluded (matches
du -sb)
- Disk usage mode: directories are included (matches
Features
- Added
--directoriesoption with valuesauto/included/excludedto control whether directory sizes are counted
Library
- Breaking: Complete redesign of the API
- Renamed
WalktoDiskUsage - Renamed
FilesizeTypetoCountType - Changed to a builder pattern:
DiskUsage::new(&paths).apparent_size().count() count()now returns aDiskUsageResultstruct instead of a tuplenew()now acceptsimpl IntoIterator<Item = P>whereP: AsRef<Path>
- Renamed
- Default number of workers (3× CPU cores) is now set in the library, not the CLI