/// <summary> /// Выводит всё содержимое буффера в виде: ключ(путь) -> содержимое(null/not null). /// </summary> /// <param name="filebuffer"></param> /// <param name="directoryPath"></param> private void PrintFileBuffer(FilesContainer filebuffer, DirectoryInfo directoryPath) { //Console.WriteLine($"--- Files in {DirectoryPath} and it subdirectories ---"); logger.Trace($"--- Files in {DirectoryPath} and it subdirectories ---"); string[] keys = filebuffer.GetKeys(); foreach (string key in keys) { //Console.WriteLine($"[{key}] -> somefile...(null={filebuffer.GetValueByKey(key)==null})"); logger.Trace($"[{key}] -> somefile...(null={filebuffer.GetValueByKey(key)==null})"); } //Console.WriteLine("--- End Writing Dictionary ---\n"); logger.Trace("---End of files ---\n"); }
public DirectoryAnalyser(DirectoryInfo directoryPath) { this.DirectoryPath = directoryPath; filebuffer = new FilesContainer(); }