dir

Retrieve the files in the specified directory

Syntax

y = dir ( s )

Inputs

ArgumentTypeDescriptionUnit
sSTRFile name with or without a wild card, or directoryn/a

Outputs / Return Value

Examples

y = dir ("c:\Temp\auxlab\1.42\") or
y = dir ("c:\Temp\auxlab\1.42\*.ini")
y{1} =
 .bytes = 1341
 .date = "06/18/2018, 04:18:28"
 .ext = ".ini"
 .isdir = (logical) 0
 .name = "auxcon32.AUDITORY"
 .path = "C:\Temp\auxlab\1.42\"
y{2} =
 .bytes = 160
 .date = "06/18/2018, 04:22:06"
 .ext = ".ini"
 .isdir = (logical) 0
 .name = "auxlab32.AUDITORY"
 .path = "C:\Temp\auxlab\1.42\"

Review Status