image thumbnail

Search files recursively (DIR2)

version (3.94 KB) by Luc Masset
searches files in a given folder with several criteria


Updated 17 Oct 2008

translation missing:

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.


Cite As

Luc Masset (2022). Search files recursively (DIR2) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!