Automatically select subfolders with a folder
이전 댓글 표시
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!
채택된 답변
추가 답변 (1개)
Image Analyst
2018년 2월 2일
0 개 추천
See my attached demo to recursively get filenames of all files in all subfolders under a specified folder.
카테고리
도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!