Hi,
I have a list of files and subfolders in a directory, now I will iterate through each and in each iteration If I find subfolder then I will enter that folder and copy the data from the file inside of that subfolder and do some activities.
If I find file then I will just copy data from the file and do some activities.
This I need to do for every file and subfolder present in that sub directory.
I know I that we can use “Directory.GetFiles” for iteration through file or “Directory.GetDirectories” for iteration through folder, but here in my use case it’s actually both.
Any help or suggestion will be helpful.