#directory #entries #count #ls #wc #faster #special

app dircnt

Count directory entries faster than ls -f | wc -l

3 stable releases

1.0.2 Dec 25, 2023
1.0.1 Dec 17, 2022
1.0.0 Oct 17, 2022

#171 in Command line utilities

Download history 15/week @ 2023-12-19 21/week @ 2023-12-26 7/week @ 2024-01-02 6/week @ 2024-01-09 1/week @ 2024-01-16 1/week @ 2024-01-23 6/week @ 2024-01-30 2/week @ 2024-02-06 11/week @ 2024-02-13 48/week @ 2024-02-20 31/week @ 2024-02-27 21/week @ 2024-03-05 28/week @ 2024-03-12 16/week @ 2024-03-19 25/week @ 2024-03-26 67/week @ 2024-04-02

139 downloads per month

MIT/Apache

7KB

dircnt

github crates.io build status

Count directory entries faster than ls -f | wc -l.

Installation

$ cargo install dircnt

Usage

$ dircnt path/to/dir
63496110

Like ls | wc -l but unlike ls -f | wc -l, the special directory entries . and .. are excluded from the count.


License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps