fix no such file

This commit is contained in:
zimzaza4
2024-09-27 22:31:56 +08:00
parent 0ee5d782b6
commit ad3009b0b7

View File

@@ -140,6 +140,7 @@ public class GeneratorMain {
Path path = animationsFolder.toPath().resolve(entry.getValue().getPath() + entry.getKey() + ".animation.json"); Path path = animationsFolder.toPath().resolve(entry.getValue().getPath() + entry.getKey() + ".animation.json");
Path pathController = animationControllersFolder.toPath().resolve(entry.getValue().getPath() + entry.getKey() + ".animation_controllers.json"); Path pathController = animationControllersFolder.toPath().resolve(entry.getValue().getPath() + entry.getKey() + ".animation_controllers.json");
pathController.toFile().getParentFile().mkdirs();
path.toFile().getParentFile().mkdirs(); path.toFile().getParentFile().mkdirs();
if (path.toFile().exists()) { if (path.toFile().exists()) {