file system in c# get all number of files list in a folder code example
Example: c# list all files in a directory and subdirectory
string[] allfiles = Directory.GetFiles("path/to/dir", "*.*", SearchOption.AllDirectories);
string[] allfiles = Directory.GetFiles("path/to/dir", "*.*", SearchOption.AllDirectories);