This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from os.path import join, getsize | |
import argparse | |
import operator | |
def parse_args(): | |
parser = argparse.ArgumentParser(description='Count the number of files for each file type in a directory.') | |
parser.add_argument('path', metavar='p', type=str, help='path of the directory') | |
parser.add_argument('-threshold', metavar='t', type=int, default=10, |