I am getting all files in a directory by following code.
IEnumerator FILES = Directory.GetFiles(
DIRECTORY_PATH).GetEnumerator();
How can I get the total number of files? There's no FILES.Count();
Directory.GetFiles(@"C:\yourdir").Length
will give you count directly
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments