search in the file names with python code example
Example 1: get file names in folder python
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
Example 2: python find file name
filesName = list(map(os.path.basename, glob.glob("..\yourPath\*txt")))
print(filesName)