martaFileIterator

Method toArray()

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

Suspends

Collects all iterated files to an array, and invalidates 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.