martaFileIterator

Method toArray()

fun FileIterator:toArray(limit: Int): Error?, Array<File>?

Suspends

Collect all iterated files to the array and close the iterator. If limit is positive, no more than limit files are returned.

Returns nil, array, or error, nil if error occurred.

This method calls dispose() automatically.