python pathlib find specific file file in directory code example Example: python find specific file in directory text_files = glob.glob(path + "/**/*.txt")