recursiveFileList
List files with a given extension recursively
Contents
Syntax
- allData=recursiveFileList(directoryList, extName)
- allData=recursiveFileList(directoryList, extName, maxFileNumInEachDir)
Description
recursiveFileList(directoryList, extName) returns all the files with the given extension name within the given directory or directory list.
recursiveFileList(directoryList, extName, maxFileNumInEachDir) returns all the files with the specs, but limit the number of files per sub-directory.
Example
data=recursiveFileList([matlabroot, '/toolbox/matlab'], 'm', 1)
data =
559x1 struct array with fields:
name
date
bytes
isdir
datenum
path
parentDir