date_file_list = [] for folder in glob.glob(root): print(folder) # select the type of file, for instance *.jpg or all files *.* for file in glob.glob(fold