[FEAT] create sub-directories

This commit is contained in:
Edouard DUPIN 2024-05-28 22:21:05 +02:00
parent 6104b68a02
commit 8ffa392b2a

View File

@ -425,7 +425,7 @@ public class TsClassElement {
}
final Path path = Paths.get(pathPackage + File.separator + "model");
if (Files.notExists(path)) {
Files.createDirectory(path);
Files.createDirectories(path);
}
final FileWriter myWriter = new FileWriter(
pathPackage + File.separator + "model" + File.separator + this.fileName + ".ts");