def get_dir_size(path):
    root_path = path
    size = 0
    for path, dirs, files in os.walk(root_path):
        for f in files:
            try:
                size += os.path.getsize(os.path.join(path, f))
            except __HOLE__:
                pass
    return size
dataset/ETHPy150Open codeinn/vcs/vcs/utils/paths.py/get_dir_size