import os from utils.fileio import * path = "I:\Program\Python\sap\\target" for file_dir in os.listdir(path): print(file_dir, len(walk_files(path + "/" + file_dir)))