DOCUMENT LIST (pathname; documents)
|pathname||String||Pathname to volume, directory or folder|
|documents||Array||Names of the documents present at this location|
The DOCUMENT LIST command populates the Text or String array documents with the names of the documents located at the pathname you pass in pathname.
Note: The pathname parameter only accepts absolute pathnames.
If there are no documents at the specified location, the command returns an empty array. If the pathname you pass in pathname is invalid, DOCUMENT LIST generates a file manager error that you can intercept using an ON ERR CALL method.
Warning: The maximum length of the parameter pathname is 255 characters. If you pass a longer pathname, it is truncated and a File Manager error is generated.
FOLDER LIST, VOLUME LIST.