Automatically select subfolders with a folder
Afficher commentaires plus anciens
I have a script that I run to process files within a folder. This script is trigger after clicking a button on a GUI that initiates this: dataDir = uigetdir(inDataDir,'Select data directory') then runs the rest of the script. The issue is I have many of these folders and I have to run this script for each and every one of them. I was wondering if there is a way I can have the script run on every successive folder after automatically. There are also files in the root directory as well (if there was a way to explicitly select just folders, that'll be great). A line of code that kills this operation would be great too. Thanks!
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 2 Fév 2018
0 votes
See my attached demo to recursively get filenames of all files in all subfolders under a specified folder.
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!