python find specific file in directory code example
Example 1: python get all file names in directory
import glob
print(glob.glob("/home/adam/*.txt"))
Example 2: python find specific file in directory
text_files = glob.glob(path + "/**/*.txt")
import glob
print(glob.glob("/home/adam/*.txt"))
text_files = glob.glob(path + "/**/*.txt")