- Added
--directoriesoption with valuesauto/included/excludedto control whether directory sizes are counted - Added
apparent_size()builder method as shorthand for.count_type(CountType::ApparentSize)
- 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
- 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
- Updated Rust edition from 2018 to 2021
- Updated dependencies
- CI fixes
- Migrated CI from Travis to GitHub Actions
- Added CHANGELOG file
- Updated dependencies
There is an important change in default behavior: diskus will now report "disk usage" instead of "apparent file size", in analogy to what du -sh does.
At the same time however, we introduce a new -b/--apparent-size option which can be used to switch back to apparent file size (in analogy to what du -sbh does).
see #25
diskusis now available for Windows, see #32 (@fawick)- Error messages are now hidden by default and can be re-enabled via
--verbose, see #34 (@wngr) - Added a new
--size-format <type>option which can be used to switch from decimal to binary exponents (MiB instead of MB). diskuschanges its output format when the output is piped to a file or to another program. It will simply print the number of bytes, see #35- Added a new
-b/--apparent-sizeoption which can be used to switch from "disk usage" to "apparent size" (not available on Windows)
- diskus is now in the official Arch repositories, see #24 (@polyzen)
- diskus is now available on NixOS, see #26 (@fuerbringer)
- diskus is now available on Homebrew and MacPorts, see #33 (@heimskr)
- Added a man page
- Expose diskus internals as a library, see #21 (@amilajack)
- More performance improvements by using a custom parallel directory-walker, see #15
- Renamed the project to diskus
- Fine-tuned number of threads (makes is even faster)
Initial release