Recursive directory listing

버전 1.0.0.0 (2.61 KB) 작성자: Gus Brown
Directory listing with a difference, supports directory wildcards.
다운로드 수: 12.4K
업데이트 날짜: 2008/4/14

라이선스 보기

Lists the files in a directory and its sub directories.

Ok, so there are many functions like this one already on the file exchange, but this one uses a slightly different wildcard naming system that some people may find useful.

For example,

rdir('C:\Program Files\Windows*\**\*.dll');

will find all dll files in the directories starting with 'C:\Program Files\Windows' and all the dll files in the sub directories below them.

One can filter the list based on the file size and date.

Using the function to find files modified sometime today in the windows directory

rdir('C:\Win*\*','datenum>floor(now)');

Include the sub directories.

rdir('C:\Win*\**\*','datenum>floor(now)');

Or you could use it to find all the no zero-byte processed csv data files for the data recorded in April 2008.

rdir('data\test_200804*\csv\*.csv','bytes>0');

this finds files like...
data\test_20080401\csv\08h00.csv
data\test_20080401\csv\16h00.csv
data\test_20080402\csv\08h00.csv
data\test_20080402\csv\16h00.csv

인용 양식

Gus Brown (2024). Recursive directory listing (https://www.mathworks.com/matlabcentral/fileexchange/19550-recursive-directory-listing), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
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.0.0.0