Пример #1
0
        private static async Task TestConentDirectories()
        {
            IReadOnlyDictionary <string, IReadOnlyList <string> > result = await ContentFinder
                                                                           .FindContentForDirAsync(
                @"C:\Users\vasar\Documents\GitHub",
                ContentModels.ContentType.Text
                );

            foreach ((string directoryName, IReadOnlyList <string> files) in result)
            {
                Console.WriteLine(directoryName);

                Console.WriteLine(
                    $"{string.Join($"{Environment.NewLine}", files)}{Environment.NewLine}"
                    );
            }
        }