abstract 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.
handler - the handler that will be called on completion
Return
a reference to this, so the API can be used fluently
abstract 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.
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