GithubHelp home page GithubHelp logo

fcount's Introduction

fcount - File, folder and symbolic link counter

Building

Build with

cargo build --release

And the executable will be in target/release/fcount.

Usage

fcount [FLAGS] <directory>

(Arguments can be in any order.)

And it should output:

Files: x
Folders: y
Symbolic Links: z

Flags include:

Flag Description
-h, --help Displays help.
-f Do not count files.
-d Do not count folders.
-s Do not count symbolic links.
-n Show numbers only, seperated by lines, in order: files, folders, symbolic links.
-r Traverse recursively (count in sub folders, and sub folders of sub folders...).
-V, --version Displays version information.

All counts are enabled as default, as I figured most people want all counts most of the time.

Flags can be chained together (unless verbose like --help), like this: -rsd, or done seperately: -r -s -d.


Examples

Traverse '/my/directory' recursively and do not count symbolic links:

fcount -rs /my/directory

Output:

Files: x
Folders: y

Count all files, folders and symbolic links in this folder, without traversing sub folders:

fcount /my/directory

Output:

Files: x
Folders: y
Symbolic Links: z

Count all files and folders, without displaying

fcount -rns /my/directory

Output:

x
y

fcount's People

Contributors

joshcol9232 avatar vlnx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.