![]() ![]() |
Reference Type: Supported, Category: Host Files, ICR#: 2320
The $$LIST^%ZISH extrinsic function returns a list of file names in the current directory. The list is returned in an array in the variable named by the third parameter.
$$LIST^%ZISH(path,arrname,retarrnam)
path: |
(required) Full path, up to but not including any filename. For current directory, pass the NULL string. |
arrname: |
(required) Fully resolved array name containing file
specifications to list at the next descendent subscript level.
ARRAY("E*")="" ARRAY("L*")="" Pass the name ARRAY as the arrname parameter. You can use the asterisk wildcard in the file specification. |
retarrnam: |
(required) Fully resolved array name to return the list of matching filenames. You should ordinarily KILL this array first (it is not purged by LIST^%ZISH). |
retarrnam: |
$$LIST^%ZISH populates the array named in the third input parameter with all matching files it finds in the directory you specify. It populates the array in the format: ARRAY("filename1")="" ARRAY("filename2")="" (etc.) |
returns: |
Returns:
|
>K FILESPEC,FILE >S FILESPEC("L*")="",FILESPEC("P*")="" >S Y=$$LIST^%ZISH("","FILESPEC","FILE") |