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