No BSD License  

Highlights from
findfiles

5.0

5.0 | 4 ratings Rate this file 13 Downloads (last 30 days) File Size: 2.88 KB File ID: #172

findfiles

by

 

This function finds all files with a specified extension in a directory and all subdirectories.

| Watch this File

File Information
Description

This function finds all files with a specified extension in a directory and all subdirectories. The file names are returned as a cell array of the fully specified path to the file.

There is also an option to turn off the recursive search of subdirectories.

This has been tested under MATLAB 6, Release 12

Acknowledgements

This file inspired Another Recursive Find File, Find Files, and Get Extension.

MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
30 Jul 2007 Claudia Hofemann

Hi,
I really like the tool, but it would be even better if it would be possible to run it with wildcards.
For example CV7=findfiles('VC7','J:\Carlos000*\')

Or is it possible?
Claudia

05 Jan 2005 Keith McLaurin

The function is case sensitive so you may want to add the lower or upper function if you have mixed case for filenames. Otherwise this is an excellent utility.

for i=1:length(d)
% look for occurences of ['.' extension] in the file name
% modified with lower function to eliminate case sensitivity
extIndices = findstr(lower(['.' extension]),lower(d(i).name));

20 Nov 2004 Thorbjorn Aklint

Very usefull and excellent work!
Thanks.

16 Jan 2004 Sylvain Fiedler

That's what people need ;)

Thank you very much for this one!!

08 Oct 2003 John Madsen

Works fine under windows.

Contact us