diff --git a/Program.cs b/Program.cs index 982a4f0..a1b6a09 100644 --- a/Program.cs +++ b/Program.cs @@ -99,6 +99,19 @@ class Program return 0; } +/// +/// Returns a list of all the files in the given directory and all subdirectories recursive +/// +/// +/// Currently this function ignores reparse points (symlinks) so as to avoid infinite loops. +/// It is probably a good idea to make the function aware of loops so it can read symlinks. +/// +/// +/// The directory to find files in. +/// +/// +/// A string list of every file in the provided directory and all subdirectories +/// static List GetAllFiles(string directory) { List res = new();