c# File System method - GetFolderFileCount()

Greetings:

I'm hoping to get code and supporting namespace that will execute the following routine:

GetFolderFileCount()

For example:

using ??

void CheckFileCount()
{
...                                    // necessary variables like 'string FilePath'
GetFolderFileCount()      // correct call
return;
}

Thanks
John500Asked:
Who is Participating?
 
Bruce_1975Commented:
System.IO.Directory.GetFiles(string);  returns a list of all files

Regards,
Bruce
0
 
burakiewiczCommented:
System.IO;

Directory.GetFiles(strPath).Length
0
 
John500Author Commented:
Thanks for the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.