如何使用ETL中文件名的前8位检查文件是否存在?

How to check if file exist or not with first 8 digits of filename in ETL?

我想查看服务器中的文件。 14位数字的文件名,如(20160906005212.csv).

我知道前 8 位数字的文件名是昨天的日期 (20160906)。但接下来的 6 位数字是时间,它会有所不同。基于日期(20160906xxxxxx.csv)我想检查文件是否存在以及日期。

有可能实现吗?

目前,我重命名并检查如下。

在转换中,使用 'Get file names' 步骤。示例:

当没有文件时,您可以使用'Detect empty stream'步骤来处理。