KI_DIR_LIST

List directory tree

Synopsis:
CALL KI_DIR_LIST path$, SYM(buf$) TO count, [status]
'ki_dir_list( path$, SYM(buf$), [status] )
ArgumentEnumerationPurpose
path$Pathname
SYM(buf$)Buffer to hold requested data
countNumber of files found
statusKDB_ERROR_ENUMOptional return status
>KI_DIR_LIST

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
History
Introduced in KCML 6.60
See Also:
IP_TOS, KI_AES_DECRYPT, KI_AES_ENCRYPT, KI_COMP, KI_COMPFILE, KI_CRYPT, KI_DCOMP, KI_DCOMPFILE, KI_DES_DECRYPT, KI_DES_ENCRYPT, KI_DF, KI_DFK, KI_DIR, KI_DS, KI_MD5, KI_PID, KI_PMATCH, KI_SHA1, KI_SIZE, KI_STAT, KI_STATFS, KI_TOUCH, R7_DATE2J, R7_J2DATE
KCML database status codes