How to get all file paths in the folder.
(I don’t know how many layer/folders in the folder)
Is there an activity to get all of these file path?
Return the file path with a array
1 Like
@jmy Check below statement once, it will gives output as file paths as array.
Directory.GetFiles(“Your main directory path”,“*”,searchOption.AllDirectories)
4 Likes
Hi @jmy,
The above solution absolutely works, just to add to the above.
If you want to get only xlsx files or specific file type
Directory.GetFiles(“Path of the Directory”,“*.xlsx”,SearchOption.AllDirectories)
Refer the below post for more reference.
1 Like
Thank you very much!
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.