python search all txt files in directory and subdirectories code example Example: python find specific file in directory text_files = glob.glob(path + "/**/*.txt")