Answers for "how to count number of directories in c#"

C#
3

c# get number of files in directory

int count = System.IO.Directory.EnumerateFiles(String path).Count();
Posted by: Guest on October-25-2020
0

c# count directories in directory and subdirectories

var countDirectories = System.IO.Directory.GetDirectories(sourcePath, "*", SearchOption.AllDirectories).Count();
Posted by: Guest on September-05-2021

Code answers related to "how to count number of directories in c#"

C# Answers by Framework

Browse Popular Code Answers by Language