A CLI utility written in Python to help you count files, grouped by extension, in a directory. By default, it will count files recursively in current working directory and all of its subdirectories, and will display a table showing the frequency for each file extension (e.g.: .txt, .py, .html, .css) and the total number of files found.
Fnmatch uses os.path.normcase(), whose behavior is platform dependent.
Lowercased filename and pattern should work correctly for all systems.
It's my mess to clean up. It’s good that you noticed. I planned to test the program on other operating systems, for example on Ubuntu, later. But it’s not a fact that I would check such a possibility of entering a pattern. Good work. Thanks!
Fnmatch uses os.path.normcase(), whose behavior is platform dependent. Lowercased filename and pattern should work correctly for all systems. It's my mess to clean up. It’s good that you noticed. I planned to test the program on other operating systems, for example on Ubuntu, later. But it’s not a fact that I would check such a possibility of entering a pattern. Good work. Thanks!