excludeFileOrDirectory

fun excludeFileOrDirectory(modpackDir: String, fileToCheckFor: File, exclusions: List<Regex>): Boolean

Check whether the given file or directory should be excluded from the server pack.

Return

true if the file or directory was determined to be excluded from the server pack.

Author

Griefed

Parameters

modpackDir

The directory where the modpack resides in. Used to filter out any unwanted directories using the property de.griefed.serverpackcreator.configuration.directories.shouldexclude.

fileToCheckFor

The file or directory to check whether it should be excluded from the server pack.

exclusions

Files or directories determined by ServerPackCreator to be excluded from the server pack