list

abstract fun list(dir: String): Array<String>

Returns the relative names of the files and directories in the given directory.

Return

a non-null array.

Parameters

dir
an absolute directory path.

Throws

if an I/O error occurs.