THE AUDITORY MODELING TOOLBOX

Applies to version: 1.0.0

View the code

Go to function

AMT_SUBDIR - Performs a recursive file search

Usage

amt_subdir
amt_subdir(name)
files = amt_subdir(...)

Description

This function performs a recursive file search. The input and output format is identical to the dir function.

Input parameters

'',name pathname or filename for search, can be absolute or relative and wildcards (*) are allowed. If ommitted, the files in the current working directory and its child folders are returned

Output parameters

'',files

m x 1 structure with the following fields:

'.name' full filename

'.date' modification date timestamp

'.bytes' number of bytes allocated to the file

'.isdir' 1 if name is a directory; 0 if no

Example:

a = subdir(fullfile(matlabroot, 'toolbox', 'matlab', '*.mat'))

System Message: WARNING/2 (<string>, line 47); backlink

Inline emphasis start-string without end-string.

Copyright 2006 Kelly Kearney Kelly Kearney (2021). subdir: a recursive file search https://github.com/kakearney/subdir-pkg