import os,fnmatch,datetime,time def all_files(root,pattern='*',single_level=False,yield_folders=False): patterns = pattern.split(';') for path,subirs,files in os.walk(root): if yield_folders: files.extend(subirs) files.sort() for name in files: for p