KI_DIR_LIST
Argument | Enumeration | Purpose |
---|---|---|
path$ | Pathname | |
SYM(buf$) | Buffer to hold requested data | |
count | Number of files found | |
status | KDB_ERROR_ENUM | Optional return status |
KI_DIR_LIST
This routine returns a simple directory listing. It will redim the given array to contain a string for each directory entry. The string will have a single character prefix of either D or F indicating if it is a Directory or File.
The call returns a count of the entries in the array and an error code. A code of _KE_SUCCESS indicates success.
This has been replaced by the 'KCML_Dir_List call.
Example
REM DIM a$(0) DIM count, status, i CALL KI_DIR_LIST "c:/WINDOWS", SYM(a$()) TO count, status IF (status == _KE_SUCCESS) FOR i = 1 TO count ... END FOR END IF