|
@@ -21,7 +21,8 @@ public class DefaultCodeWriter implements CodeWriter {
|
|
|
File file = new File(path);
|
|
|
file.mkdir();
|
|
|
String type = code.getType();
|
|
|
- String filePath = code.getFile().startsWith("/") ? code.getFile() : path + "/" + code.getFile();
|
|
|
+
|
|
|
+ String filePath = code.getFile();
|
|
|
if ("dir".equals(type)) {
|
|
|
code.getChildren()
|
|
|
.forEach(childrenCode -> writeCode(filePath, childrenCode));
|