lfInfo = SYS_GetDirContents ([sDrive[,datasetsizes]])
Variable | Description |
---|---|
lfInfo | The returned information about the files. LIST OF FILEINFO. |
sDir | Optional: The name (including path and drive information if required) of the directory to find information about. The default is the current directory. STRING. |
datasetsizes |
Optional: The default is DS_BYTES; other values are DS_KILOBYTES, DS_MEGABYTES, DS_GIGABYTES, or DS_TERABYTES. This parameter affects what iSize in FILEINFO data type returns and whether it is an INTEGER or REAL. The value returned for DS_BYTES is an integer. If the file size is greater than 2 gigabytes, the return will be 2 gigabytes (though in reality, the file size is greater than that). All other values for datasetsizes return a REAL of the actual file size. |
SYS_GetDirContents returns information about each of the files in the specified directory, in a record of type FILEINFO. See the FILEINFO data type for a list of fields for FILEINFO.
SYS_GetDirContents returns only information that is accessible to the current user. Therefore it returns the contents of only those directories to which the current user has access.