Here's a fast C# native method using P/Invoke to count all files and sub-directories. It uses FindNextFile filing information in WIN32_FIND_DATA structure. Using the implementation below it does offer the ability to do extensive error handling on a file-by-file basis. It compares this to GetFile and GetDirectories methods, with elapsed times.
-
Notifications
You must be signed in to change notification settings - Fork 0
Here's a fast C# native method using P/Invoke to count all files and sub-directories. It uses FindNextFile filing information in WIN32_FIND_DATA structure. Using the implementation below it does offer the ability to do extensive error handling on a file-by-file basis. It compares this to GetFile and GetDirectories methods, with elapsed times.
markpahulje/NativePinvokeFastCountSubDirsandFiles
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Here's a fast C# native method using P/Invoke to count all files and sub-directories. It uses FindNextFile filing information in WIN32_FIND_DATA structure. Using the implementation below it does offer the ability to do extensive error handling on a file-by-file basis. It compares this to GetFile and GetDirectories methods, with elapsed times.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published