Answers for "c# get count of files in directory"

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 files in directory and subdirectories

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

Code answers related to "c# get count of files in directory"

C# Answers by Framework

Browse Popular Code Answers by Language