Function Reference
— Function File: dir (directory)
— Function File: [list] = dir (directory)

Display file listing for directory directory. If a return value is requested, return a structure array with the fields

          name
          bytes
          date
          isdir
          statinfo

in which statinfo is the structure returned from stat.

If directory is not a directory, return information about the named filename. directory may be a list of directories specified either by name or with wildcard characters (like * and ?) which will be expanded with glob.

Note that for symbolic links, dir returns information about the file that a symbolic link points to instead of the link itself. However, if the link points to a nonexistent file, dir returns information about the link.