vertx / io.vertx.config.spi.utils / FileSet

FileSet

open class FileSet

Utility class to manage file set selected using a pattern.

Author
Clement Escoffier

Constructors

<init>

FileSet(vertx: Vertx, root: File, set: JsonObject)

Creates a new FileSet from a json object.

Functions

buildConfiguration

open fun buildConfiguration(files: MutableList<File>, handler: Handler<AsyncResult<JsonObject>>): Unit

Iterates over the given set of files, and for each matching file, computes the resulting configuration. The given handler is called with the merged configuration (containing the configuration obtained by merging the configuration from all matching files).

traverse

open static fun traverse(root: File): MutableList<File>

List all the files from a directory (recursive)