Skip to content

Commit

Permalink
upgrade the version to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seamile committed Jan 18, 2023
1 parent c192da0 commit 0ae37bd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fcnt"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
readme = "README.md"
homepage = "https://github.com/seamile/fcnt"
Expand Down
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It can quickly count the number and size of huge amount of files in multiple dir
## Usage

```shell
$ fcnt3 [OPTIONS] [DIRECTORIES]...
$ fcnt [OPTIONS] [DIRECTORIES]...
```

- Arguments:
Expand All @@ -24,16 +24,26 @@ $ fcnt3 [OPTIONS] [DIRECTORIES]...

## Example

```shell
$ fcnt -as ./Pictures ./Music ./Downloads/Gzh/Gifts
By default, the results will be sorted by file count in descending order.

Name Files Dirs Size
./Pictures 7783 276 17.6G
./Music 3671 1199 21G
./Downloads/Gifts 295 6 689.8M
```shell
fcnt ./Pictures ./Music ./src/package
Path Files Dirs
./src/package 8070 3120
./Pictures 7799 274
./Music 3455 1196
──────────────────────────
Total 19324 4590
```

## TODO
If the `-s` option is specified, the sort column will be change to `Size`.

- [ ] add test cases.
- [ ] add documentation in the source code.
```shell
$ fcnt -s ./Pictures ./Music ./src/package
Path Files Dirs Size
./Music 3455 1196 21G
./Pictures 7799 274 17.5G
./src/package 8070 3120 4G
─────────────────────────────────
Total 19324 4590 42.6G
```
2 changes: 1 addition & 1 deletion src/cmdargs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::output as op;

#[derive(Parser)]
#[command(name = "fcnt")]
#[command(version = "0.2.1")]
#[command(version = "0.2.2")]
#[command(about = "Count the total number of files in given directories.")]
pub struct CmdArgParser {
/// the directories (default: ./)
Expand Down

0 comments on commit 0ae37bd

Please sign in to comment.