Recursive Directory Searching for Multiple File Specs

Searches a directory for multiple file specs with optional recursivity

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Jonathan Sullivan (2026). Recursive Directory Searching for Multiple File Specs (https://www.mathworks.com/matlabcentral/fileexchange/40016-recursive-directory-searching-for-multiple-file-specs), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0

Increased the maximum number of filterspecs the MEX file can take from 20 to 10,000.

Download
1.6.0

Fixed minor bug in the non-recursive MEX implementation

Download
1.5.0

Modified memory management in the MEX file to allow for a smaller footprint.

Download
1.4.0

Added a MEX implementation for Windows users.

Download
1.3.0

Fixed an issue that caused dir2 to exceed recursion limit in older versions of MATLAB.

Download