regexWalk

open override fun regexWalk(source: File, destination: String, regex: Regex, serverPackFiles: MutableList<ServerPackFile>)

Walk through the specified directory and add a ServerPackFile for every file/folder which matches the given regex.

Author

Griefed

Parameters

source

The source-directory to walk through and perform regex-matches in.

destination

The destination-directory where a matched file should be copied to, usually the server pack directory.

regex

Regex with which to perform matches against files in the source-directory.

serverPackFiles

List of files to copy to the server pack to which any matched file will be added to.