When searching for files in a directory tree ( Folder and all sub-folders), what is the effective difference between doing this:
Directory.GetFiles(root, "*", SearchOption.AllDirectories);
and doing your own recursive search using
Directory.GetFiles(root) and Directory.GetDirectories(root)
What are the pros and cons for using each method, which method is suited for which use case? Thanks.