Class ModpackDirectoryValidator
-
- All Implemented Interfaces:
public final class ModpackDirectoryValidatorValidator for the modpack-directory-concern of a server pack configuration: existence, type and the absence of the overrides-directory which marks uninstalled modpack-exports. Extracted from ConfigurationHandler (refactor Phase 1c); ConfigurationHandler remains the facade through which consumers access these checks.
-
-
Constructor Summary
Constructors Constructor Description ModpackDirectoryValidator()
-
Method Summary
Modifier and Type Method Description final ConfigCheckcheckModpackDir(String modpackDir, ConfigCheck configCheck, Boolean printLog)Check the passed directory for existence and whether it is a directory, rather than a file. -
-
Method Detail
-
checkModpackDir
final ConfigCheck checkModpackDir(String modpackDir, ConfigCheck configCheck, Boolean printLog)
Check the passed directory for existence and whether it is a directory, rather than a file.
- Parameters:
modpackDir- The modpack directory.configCheck- Collection of encountered errors, if any, for convenient result-checks.- Returns:
trueif the directory exists.
-
-
-
-