This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Are you using a directory tool to get the list of files that are then fed into a dynamic input?
If this is the case, you could create subdirectory number logic by counting the number of slashes in the file path, and then filter out files with a level count above whatever threshold that you specify.
The directory tool would still take the processing time to identify the file names, but you could limit the number of files that were actually read in by filtering out the files that aren't relevant.
Text to column on folder names with \ as the delimiter into 6 columns as an example. Now if you only want to pull the directories that go to the parentfolder level you could add a filter tool and say  isnull.