get all files (path)

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
What is the easiest way to get a folder as input and to get as an output
all of the possible full path to files that are inside this folder and
inside the folders in it (recursive)?

Thanks!
 
csharpula csharp said:
What is the easiest way to get a folder as input and to get as an output
all of the possible full path to files that are inside this folder and
inside the folders in it (recursive)?

I believe that the simplest way would be to just call
System.IO.Directory.GetDirectories, using the "AllDirectories" search option
for its last parameter.
 
What is the easiest way to get a folder as input and to get as an output
all of the possible full path to files that are inside this folder and
inside the folders in it (recursive)?

All of the POSSIBLE paths or all of the EXISTING paths? There is quite a
difference....
 
There is a folder input and output is all pathes that are more than 100
chars. How can I do it if I have a folder inside folder and files inside
structure?

Thanks
 
Back
Top