Commit 93a133c4 authored by Markus Philipp Bauer's avatar Markus Philipp Bauer

path fix MapService

parent efba5cd4
Pipeline #142436 passed with stage
in 4 minutes and 39 seconds
......@@ -26,6 +26,7 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.nio.file.Paths;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
......@@ -48,7 +49,7 @@ public class MapService {
}
public static MapModel saveMap(InputStream inputStream, String fileName){
String path = MAP_BASE_DIR + "/" + fileName;
String path = Paths.get(MAP_BASE_DIR, fileName).toString();
Util.writeToFile(inputStream, path);
int map_id = MapDAO.create(fileName, path);
MapModel mapModel = new MapModel();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment