Configuration Directory
Load all files in a directory into one configuration section.
ConfigurationDirectory directory = new ConfigurationDirectory(new File("folder"));
// Load only the directory (true) or all directories inside it too (false).
directory.load(false);
File folder = directory.getDirectory();
File folder = directory.getDirectory("path/path");
String name = getDirectoryName();
directory.addResourcePath("path_from_resource_folder");
List<String> resources = directory.getResourcePathList();
directory.removeResourcePath("path_from_resource_folder");
directory.clearResourcePathList();
Resource paths will be loaded if the resource doesn't exist in the directory.
Configuration store = directory.getDataStore();
A YAML
configuration file that can be used to store info about the directory.
This configuration file won't be loaded as part of the directory.
Last updated