Loop through each file in folders and sub folders

Hi I want to loop through each file in a folder and sub folder and sub folder. I do not have all the files in just one folder. I am able to loop through each file if they are located in just one folder but how to fetch file infor that is in 2-3 levels of sub folders ?

Directory.getfiles(“Path”) only loops through the specified folders

1 Like

You can check files in specified directory by Directory.getfiles(“Path”) and also check directories by method Directory.GetDirectories(“Path”).

Hi @contact_ankit86

I also have the same condition. Have you found the solution? If yes, then please share the logic or if possible the .xaml file

Thanks

1 Like