MatrixBerryCore
listdirsrecursive.m
Go to the documentation of this file.
1 function fileNameList=listdirsrecursive(dirName,patternStr,maxDepth)
2 mxberry.core.checkvar(maxDepth,'fix(x)==x&&x>=0');
3 if maxDepth==Inf
4  maxDepth=-1;
5 else
6  maxDepth=maxDepth+1;
7 end
8 %
9 fileNameList=cell(mxberry.io.FileUtils.listDirsRecursive(dirName,...
10  patternStr,maxDepth));
function listdirsrecursive(in dirName, in patternStr, in maxDepth)
LISTDIRSRECURSIVE returns a list of directories with names matching a specified pattern in all the su...