registerFolder

fun registerFolder(folder: Path, viewCurrentFiles: Boolean = false): List<Path>?

Subscribes the watchdog and prepares the maestro to attend to folder.

If viewCurrentFiles is set to true (default false), the function returns a List of Path objects which contains a list of files in the current directory. This list will be guaranteed to be non-null (if no files are found, emptyList will be returned)

Otherwise, by default this function will return null