Recursive directory listing
Updated 14 Apr 2008
Lists the files in a directory and its sub directories.
Ok, so there are many functions like this one already on the file exchange, but this one uses a slightly different wildcard naming system that some people may find useful.
will find all dll files in the directories starting with 'C:\Program Files\Windows' and all the dll files in the sub directories below them.
One can filter the list based on the file size and date.
Using the function to find files modified sometime today in the windows directory
Include the sub directories.
Or you could use it to find all the no zero-byte processed csv data files for the data recorded in April 2008.
this finds files like...
Gus Brown (2023). Recursive directory listing (https://www.mathworks.com/matlabcentral/fileexchange/19550-recursive-directory-listing), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Find 'orphaned' m-files, Find repeated m-file names, Recursive directory walk with -exec (UNIX type), Recursive directory listing - Enhanced RDIR, rdir_dos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.