findFileInFolder(pa​rentFolderPath, fileExtension, varargin)

版本 1.1.0.0 (4.6 KB) 作者: Benjamin Pillot
Find multi-format file(s) in folder and sub-folders
93.0 次下载
更新时间 2017/9/24

查看许可证

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 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Make use of the regexptranslate built-in function

1.0.0.0

description
Changed regular expression for better file extension/name match