
# https://www.globalsino.com/ICs/
# Count how many files and folders in a directory

import os

theDirectory = r"C:\0Python\0testingCodes\New folder"

file_number = len([item for item in os.listdir(theDirectory) if os.path.isfile(os.path.join(theDirectory, item))])

print(file_number)
