Jul-01-2019, 12:04 PM
Find a given file recursively inside a dir. The code I tried is not showing any output, though I have a file C:\Users\anaveed\test\hoax\a.txt
Below the code
Below the code
import glob import os os.chdir(r'C:\Users\anaveed\test') for f in glob.iglob('a.txt', recursive=True): print(f)No output