vertx / io.vertx.reactivex.core.file / FileSystem / readDir

readDir

open fun readDir(path: String, handler: Handler<AsyncResult<MutableList<String>>>): FileSystem

Read the contents of the directory specified by path, asynchronously.

The result is an array of String representing the paths of the files inside the directory.

Parameters

path - path to the file

handler - the handler that will be called on completion

Return
a reference to this, so the API can be used fluently

open fun readDir(path: String, filter: String, handler: Handler<AsyncResult<MutableList<String>>>): FileSystem

Read the contents of the directory specified by path, asynchronously.

The parameter filter is a regular expression. If filter is specified then only the paths that match @{filter}will be returned.

The result is an array of String representing the paths of the files inside the directory.

Parameters

path - path to the directory

filter - the filter expression

handler - the handler that will be called on completion

Return
a reference to this, so the API can be used fluently