I want to use Python to automate the search for a file modified on a certain day and time in a shared directory.
The manual step currently looks as follows:
*check file created with Previous business date in \\fcganas3\FICC\FIC_CMT\SecurityAnalytics\
or \\fcganas3\FICC\FIC_CMT\SecurityAnalytics\Load\ folder*
Filename: " BBG-BIGE-SPFD_1_YYYYMMDD.csv " (YYYYMMDD - Previous Working Day).
I am able to search files in the local directory (refer below code)
import os
import glob
path = 'e:\\'
extension = 'pdf'
os.chdir(path)
result = glob.glob('*.{}'.format(extension))
print(result)