cleanupEnvironment

abstract fun cleanupEnvironment(deleteZip: Boolean, destination: String)

Deletes all files, directories and ZIP-archives of previously generated server packs to ensure newly generated server pack is as clean as possible. This will completely empty the server pack directory, so use with caution!

Author

Griefed

Parameters

deleteZip

Whether to delete the server pack ZIP-archive.

destination

The destination at which to clean up in.


fun cleanupEnvironment(deleteZip: Boolean, packConfig: Pack<*, *, *>)

Deletes all files, directories and ZIP-archives of previously generated server packs to ensure newly generated server pack is as clean as possible. This will completely empty the server pack directory, so use with caution!

Author

Griefed

Parameters

deleteZip

Whether to delete the server pack ZIP-archive.

packConfig

ConfigurationModel containing the modpack directory from which the destination of the server pack is acquired.