findFileInFolder(pa​rentFolderPath, fileExtension, varargin)

Find multi-format file(s) in folder and sub-folders
94 download
Aggiornato 24 set 2017

Visualizza la licenza

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

Cita come

Benjamin Pillot (2024). findFileInFolder(parentFolderPath, fileExtension, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/59357-findfileinfolder-parentfolderpath-fileextension-varargin), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2015a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Search Path in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
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