check Inclusions
fun checkInclusions(inclusions: MutableList<InclusionSpecification>, modpackDir: String, configCheck: ConfigCheck = ConfigCheck(), printLog: Boolean = true): ConfigCheck
Checks whether the passed list of directories which are supposed to be in the modpack directory is empty, or whether all directories in the list exist in the modpack directory. If the user specified a source/file;destination/file
-combination, it is checked whether the specified source-file exists on the host.
Return
true
if every directory was found in the modpack directory. If any single one was not found, false is returned.
Author
Griefed
Parameters
inclusions
Directories, or source/file;destination/file
-combinations, to check for existence. source/file;destination/file
-combinations must be absolute paths to the source-file.
modpack Dir
Path to the modpack directory in which to check for existence of the passed list of directories.