All,
We have a massive, messy folder structure that contains csv files. The files we want are inside any folder path containing folder name "XYZ". Example:
I want File1, File2, File4, and File5; do not want File3. I can't use the Directory Tool to Ingest Top Folder and all its subfolders because it contains a gazillion folders and files and would take forever to load, and I don't need 95% of them. So, I boosted a RunCommand tool I found on another community post, which returns all the folder path names inside Top Folder. Then I use a Filter with Contains "XYZ"; now I know the folder paths I'll need. I thought I could feed the Dynamic Input tool these paths, but it fails because Dynamic Input tool needs a FullPath including file name, which i don't have. I only have the folder paths. How to dynamically ingest:
\\Top Folder\XYZ Folder\*.csv
\\Top Folder\ABC Folder\XYZ Folder\*.csv
\\Top Folder\ABC Folder\XYZ Folder\EFG Folder\*.csv
A macro, probably? Or maybe I'm missing something simple in the Dynamic Input tool?