andy.boot
51561994c5
Break up display_node function slightly
...
Also: run rustformat
2018-05-09 11:28:23 +01:00
andy.boot
dd75ec4aa7
wip: code to remove duplicate arguments
...
Also handle case where an argument is a substring of another argument
2018-05-09 10:35:30 +01:00
bootandy
3e9f09e339
Remove unnecessary path & pathbuf code
2018-05-02 00:42:03 +01:00
bootandy
2556885622
Rust format
2018-05-02 00:39:57 +01:00
andy.boot
4ac85d7dc9
Simplify tests
...
dust sort is now more predictable as it orders first by size and second
by name.
Walkdir still gives different iteration orders on different systems so
all output is not entirely predictable
2018-04-27 11:35:47 +01:00
andy.boot
e6c777fb8b
Add support for -d depth flag
...
Following a user request the option '-d N' allows a user to output N
levels of sub directories.
Fixed bug: so that trailing slashes are now removed.
2018-04-27 10:01:41 +01:00
andy.boot
24c97ef92f
Rewrite to use walkdir instead of recursion
...
Advised to use walkdir by burntsushi as using recursion on file systems
can blow the stack.
walkdir is slower but allows the code to be cleaner and more reliable
Also experimented with ignore but locking the hashmap resulted in
similar performance to walkdir but with much uglier code.
2018-04-24 14:53:47 +01:00
andy.boot
0c5b08e1d2
Change package name to du-dust
...
The binary is still called dust. Sadly dust was taken on crates.io.
This change should allow us to send this crate to crates.io
2018-04-18 13:40:52 +01:00
bootandy
74b9178017
Refactor code
2018-04-07 17:14:06 +01:00
bootandy
120b4e16e7
Squash Node and DirEnt objects into single object
2018-04-03 17:05:28 +01:00
bootandy
ecf6c8f0e5
Refactor: Pull display code out to different file
2018-03-22 17:21:51 -04:00
bootandy
4944d517f4
Apparent size mode: handle hard links.
...
If we are viewing apparent size then each hard linked file should be
counted. Not just the first one.
2018-03-22 14:36:17 -04:00
bootandy
cce656ab4c
rm dead code
2018-03-22 14:30:30 -04:00
Joe Ardent
eb69ad19a0
break platform cfg code into utils submodule
2018-03-22 00:00:21 -07:00