vertx / io.vertx.rxjava.core.file / FileSystem / rxReadDir

# rxReadDir

`open fun rxReadDir(path: String): Single<MutableList<String>>`

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

Return

`open fun rxReadDir(path: String, filter: String): Single<MutableList<String>>`

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

Return