Answers for "c# count files in directory and subdirectories"

C#
0

c# count files in directory and subdirectories

var countFiles = System.IO.Directory.GetFiles(sourcePath, "*.*", SearchOption.AllDirectories).Count();
Posted by: Guest on September-05-2021
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 "c# count files in directory and subdirectories"

C# Answers by Framework

Browse Popular Code Answers by Language