foreachIn

fun foreachIn(plugin: JavaPlugin, root: String, consumer: Consumer<Path>)

Lists all files and directories within the specified root folder within the plugin's JAR file.

Parameters

plugin

The JavaPlugin instance of the plugin.

root

The root folder within the JAR file to list from.

Throws

If the plugin's root URL cannot be converted to a URI.

If an I/O error occurs while listing the files and directories.