Recursive DIR

버전 1.1.0.0 (2.61 KB) 작성자: Luc Masset
DIRREC finds files recursively in a given folder
다운로드 수: 3.4K
업데이트 날짜: 2013/2/15

라이선스 보기

Find files recursively in a given folder.

C=dirrec('c:\windows') returns a cell C with the full pathname of all
files in the c:\windows folder and all its sub-folders.

C=dirrec('c:\windows','.exe') idem but returns only the files with
extension .exe.

C=dirrec('c:\windows','co*') idem but returns only the files starting with the two letters co (comsetup.log, control.ini, ...).

C=dirrec('c:\windows',{'.exe','.dll') idem but returns files with both
.exe and .dll extensions.

dirrec('c:\windows','.cmd') only displays the list of the .cmd files in
the Matlab command window

c:\windows\system32\login.cmd
c:\windows\system32\usrlogon.cmd

Note that extension should be given in lower case.

I was using the DDIR function by Maximilien Chaumon but it was not possible to compile ddir so I write my own function.

Luc

인용 양식

Luc Masset (2024). Recursive DIR (https://www.mathworks.com/matlabcentral/fileexchange/15505-recursive-dir), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

BSD license added

1.0.0.0

Add the possibility to search filenames with starting with given letters. For example, dirrec('c:\windows','co*').