fileList

File list of given directories with a given extension name

Contents

Syntax

Description

fileList(directoryList, opt) returns all the files with the given directory (or directory list) according to the give options opt.

The default options can be obtain via "opt=fileList('defaultOpt')".

Example

opt=fileList('defaultOpt');
opt.extName='m';
opt.maxFileNumInEachDir=1;
opt.mode='recursive';
data=fileList([matlabroot, '/toolbox/matlab'], opt)
data = 

  880×1 struct array with fields:

    name
    folder
    date
    bytes
    isdir
    datenum
    path
    parentDir


Top page   Next: fcOptSet.m   Prev:frame2sampleIndex.m