dir

Parent Previous Next

dir

y = dir ( s )

Retrieve the files in the specified directory

arg

type

Description

Unit or Value scale

s

STR

File name with or without a wild card, or directory


Outputs

  • y is a cell array showing the directory contents. Each cell is a directory class with the following members: name, ext, path, isdir, date, and bytes.

Notes

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\"

See Also

Created with the Personal Edition of HelpNDoc: Free Kindle producer