findFileInFolder(parentFolderPath, fileExtension, varargin)
This function is an update of an old one (submitted in 2013) I decided to delete. This version is cleaner, shorter and more efficient than the previous one.
It recursively searches for specified file names and extensions (with or without respect to letter case) in a given directory and its sub-directories.
Example: findFileInFolder(pwd, {'.m', '.zip', '.mat'}) match all files with the corresponding extensions ('.m', '.zip', '.mat') in the current directory
More information in the m-file
引用格式
Benjamin Pillot (2024). findFileInFolder(parentFolderPath, fileExtension, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/59357-findfileinfolder-parentfolderpath-fileextension-varargin), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!