Create temp dir if it doesn't exist
This commit is contained in:
parent
8320ec2347
commit
f0412093de
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user