File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " fcnt"
3
- version = " 0.2.1 "
3
+ version = " 0.2.2 "
4
4
edition = " 2021"
5
5
readme = " README.md"
6
6
homepage = " https://github.com/seamile/fcnt"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ It can quickly count the number and size of huge amount of files in multiple dir
7
7
## Usage
8
8
9
9
``` shell
10
- $ fcnt3 [OPTIONS] [DIRECTORIES]...
10
+ $ fcnt [OPTIONS] [DIRECTORIES]...
11
11
```
12
12
13
13
- Arguments:
@@ -24,16 +24,26 @@ $ fcnt3 [OPTIONS] [DIRECTORIES]...
24
24
25
25
## Example
26
26
27
- ``` shell
28
- $ fcnt -as ./Pictures ./Music ./Downloads/Gzh/Gifts
27
+ By default, the results will be sorted by file count in descending order.
29
28
30
- Name Files Dirs Size
31
- ./Pictures 7783 276 17.6G
32
- ./Music 3671 1199 21G
33
- ./Downloads/Gifts 295 6 689.8M
29
+ ``` shell
30
+ fcnt ./Pictures ./Music ./src/package
31
+ Path Files Dirs
32
+ ./src/package 8070 3120
33
+ ./Pictures 7799 274
34
+ ./Music 3455 1196
35
+ ──────────────────────────
36
+ Total 19324 4590
34
37
```
35
38
36
- ## TODO
39
+ If the ` -s ` option is specified, the sort column will be change to ` Size ` .
37
40
38
- - [ ] add test cases.
39
- - [ ] add documentation in the source code.
41
+ ``` shell
42
+ $ fcnt -s ./Pictures ./Music ./src/package
43
+ Path Files Dirs Size
44
+ ./Music 3455 1196 21G
45
+ ./Pictures 7799 274 17.5G
46
+ ./src/package 8070 3120 4G
47
+ ─────────────────────────────────
48
+ Total 19324 4590 42.6G
49
+ ```
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use crate::output as op;
8
8
9
9
#[ derive( Parser ) ]
10
10
#[ command( name = "fcnt" ) ]
11
- #[ command( version = "0.2.1 " ) ]
11
+ #[ command( version = "0.2.2 " ) ]
12
12
#[ command( about = "Count the total number of files in given directories." ) ]
13
13
pub struct CmdArgParser {
14
14
/// the directories (default: ./)
You can’t perform that action at this time.
0 commit comments