<p>我想使用Python在共享目录中自动搜索在特定日期和时间修改的文件</p>
<p>手动步骤目前如下所示:</p>
<pre><code>*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).
</code></pre>
<p>我能够在本地目录中搜索文件(请参阅下面的代码)</p>
<pre><code> import os
import glob
path = 'e:\\'
extension = 'pdf'
os.chdir(path)
result = glob.glob('*.{}'.format(extension))
print(result)
</code></pre>