Search files recursively (DIR2)

searches files in a given folder with several criteria
1.3K Downloads
Updated 17 Oct 2008

No License

DIR2 searches recursively in a given folder and all its sub-folders for files matching various criteria (extension, date, size etc).

It was useful for my own apps development for managing several file extensions in several sub-folders.

Luc

Cite As

Luc Masset (2026). Search files recursively (DIR2) (https://www.mathworks.com/matlabcentral/fileexchange/21791-search-files-recursively-dir2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0