I have a large directory with multiple folders, I'm trying to locate a particular folder in it (the folder name has a suffix date ending eg- abcd_ef_YYYYMMDD) using the input tool and later find a sub-file in it. How can I do it?
Solved! Go to Solution.
If this folder has files inside of it, you can point the directory tool to a root folder that contains this specific folder, and with the Include SubDirectories options enabled:
And then, use the filter tool to filter the pattern name. REGEX_Match([FullPath], '\w{4}_\w{2}_\d{8}') formula wold work if your pattern name for this folder is 4 letters_2 letters_8 numbers
This sounds like a great option, I tried the exact method but unfortunately, I have a zillion files and using sub-files would take a decade to complete.. I need a method that doesn't use sub-files instead select the folder exactly.
@APIUserOpsGiri I see, unfortunately with just Alteryx i dont think that you gonna find another option than using the directory tool.
One possible workaround is by using cmd/python/R to list the directories and see if it performs better. I think that it will perform better.
Here it is, try the attached workflow. Just replace your root directory on the text input tool and run it, it should work. It will list all directories inside of the provided root directory, without looking at the files inside of them. I believe that this will be a lot faster for you.