Ignore output directory

This commit is contained in:
Matt Soucy 2020-08-27 20:50:15 -04:00
parent a6f0c57c16
commit e897278323

View File

@ -80,11 +80,10 @@ class GbatArgs(parser: ArgParser) {
fun main(args: Array<String>) = mainBody {
ArgParser(args).parseInto(::GbatArgs).run {
val outDir = File(output)
if (outDir.isDirectory) {
// throw InvalidArgumentException("Output directory already exists")
}
outDir.delete()
outDir.mkdirs()
File(outDir, ".gitignore").writeText("*")
fun parse_interesting(theList: List<String>) =
theList.map {