bootandy
876609f2cb
Obey new clippy
...
Clippy is like having a reviewer fix your dodgy code.
2019-07-01 22:25:06 +01:00
bootandy
2556885622
Rust format
2018-05-02 00:39:57 +01:00
bootandy
39db8b86fd
Replace simple match with map_or
2018-05-01 14:38:34 +01:00
bootandy
c5830c5d00
Stop using target_os just use target_family
...
target_family unix covers linux and mac and wraps up the call for inodes
in a common interface.
2018-05-01 13:59:48 +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
bootandy
03a517a310
block size is always 512 on rust
2018-03-22 14:29:59 -04:00
Joe Ardent
aa3f411974
fixes blocksize error in get_blocksize().
...
Under Linux, MetadataExt::st_blocks() returns then number of 512B
blocks.
https://doc.rust-lang.org/1.23.0/std/os/linux/fs/trait.MetadataExt.html#tymethod.st_blocks
2018-03-22 00:34:14 -07:00
Joe Ardent
eb69ad19a0
break platform cfg code into utils submodule
2018-03-22 00:00:21 -07:00