Display file listing for directory directory. If a return value is requested, return a structure array with the fields
name bytes date isdir statinfoin which
statinfois the structure returned fromstat.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,
dirreturns information about the file that a symbolic link points to instead of the link itself. However, if the link points to a nonexistent file,dirreturns information about the link.