C#:
How can we Extract the files URL by going into subdirectory of each of the folder and get URL of all the file with .log or .txt extension ?? Eg.There is a URL "https://example.com/folder1" From this URL it goes under each one of the subfolder and return the URL of all txt,log file like
https://example.com/folder1/sub1/sub2/abc.log
https://example.com/folder1/sub1/sub2/ghs.log
https://example.com/folder1/sub1/eyu.txt
get return after inputing example URL("https://example.com/folder1") and store all these into list of string
string[] files = fileExtensions.SelectMany(f => Directory.GetFiles(url, f, SearchOption.AllDirectories)).ToArray();
I have tried this but it is not supported any other methods??