|
Contents | Previous | Next | Subchapters |
| Syntax |
listdir |
listdir(directory) | |
listdir(directory, pattern) | |
| See Also | dir , listdirs , exists , isdir , rmdir , findstr , find2 |
listdir returns only filenames that
contain strings that match the
Regular Expressions
specified by the character row vector pattern.
c:\omwin\programs contains the files
edit.oms and TEST.OMS, and you enter
listdir("c:\omwin\programs")
O-Matrix will respond
edit.oms
TEST.OMS
If you enter,
listdir([OM_INSTALL,"\function"], "^fn.*")
O-Matrix will list only the functions in the function directory
that start with the characters "fn".
fn2cbp.oms
fn2clp.oms
fn2dbp.oms
fn2dlp.oms
fnbpole.oms
fnbut.oms
fncheb.oms
fncpole.oms
dir instead of listdir.
If the directory
C:\omwin\programs contains the files
edit.oms and TEST.OMS,
and in Mlmode you enter
dir("c:\omwin\programs")
O-Matrix will respond
edit.oms
TEST.OMS