mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add util createOutputFolder
This commit is contained in:
parent
0c02ea71a5
commit
7d8e32fc8d
3 changed files with 21 additions and 34 deletions
17
jsprit-examples/src/main/java/jsprit/util/Examples.java
Normal file
17
jsprit-examples/src/main/java/jsprit/util/Examples.java
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package jsprit.util;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Examples {
|
||||
|
||||
public static void createOutputFolder(){
|
||||
File dir = new File("output");
|
||||
// if the directory does not exist, create it
|
||||
if (!dir.exists()){
|
||||
System.out.println("creating directory ./output");
|
||||
boolean result = dir.mkdir();
|
||||
if(result) System.out.println("./output created");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue