• Stars
    star
    129
  • Rank 273,665 (Top 6 %)
  • Language
    C
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A program to quickly count files in a subdirectory. This is mostly a programming demonstration.

fast-file-count

A program to quickly count files in a subdirectory. This is mostly a programming demonstration that arose from some sample code poasted to StackOverflow here: https://stackoverflow.com/questions/1427032/fast-linux-file-count-for-a-large-number-of-files/28368788#28368788

Contributions welcome!

Compiling

Using GCC or LLVM, the code complies cleanly using this command:

$ cc -Wall -pedantic -o dircnt dircnt.c

Usage

$ dircnt [dir]

Where 'dir' is the directory you want to scan for files. The default dir is "." (current directory).