Create temp dir if it doesn't exist

This commit is contained in:
Steven Tracey 2024-08-21 23:13:30 -04:00
parent 8320ec2347
commit f0412093de

View File

@ -1,5 +1,6 @@
package tech.nevets.igformatter;
import java.io.File;
import java.util.Timer;
import static spark.Spark.*;
@ -7,6 +8,11 @@ import static spark.Spark.*;
public class Main {
public static void main(String[] args) {
File f = new File("./temp/");
if (!f.exists()) {
f.mkdir();
}
if (args.length >= 1) {
port(Integer.parseInt(args[0]));
} else {