Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int GetDirectoryFileCount(string path)
- {
- int fileCount = 0;
- if(Directory.Exists(path))
- {
- fileCount = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories).Length;
- }
- return fileCount;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement