|I need only the pathnames of the files|
Which files do you need?
not the full pathnames of all the files in the folder as well as all the subfolders.
Are they a group of specifically named files?
Do they have a unique extension?
Are they in a specific sub-directory?
Like I said before, “not sure what it is your looking for.”