by Richard Mewett (9 Submissions)
Category: Files/File Controls/Input/Output
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (17 Votes)
Fast API based file/folder scanner. Single File solution with no dependencies to add file processing to any Utility Project in single step. Scans a path (applying optional Attribute, Mask, Date and Size filters + multiple file extensions and simple pattern matching). Can also optionally scan nested sub-folders and/or sort results. Returns the files & folders by raising events. I originally created this a few years ago when I was creating many File Utilities. Hope it may be useful as example of API file handling and WithEvents. I welcome feedback (votes always appreciated)!
UPDATE: Fixed a resource leak and simplified the use of extended file details.