So I am able to extract all the file names into a text file, but there are millions of results. How do I limit it to only look at files created in the last 24 hours/1 day ???
This is my code so far.
with open("output.txt", "w") as a:
for path, subdirs, files in os.walk(r'\\somefolder'):
for filename in files:
f = os.path.join(filename)
a.write(str(f) + os.linesep)
thank you for your help