Skip to content

Commit

Permalink
I am dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Feb 5, 2025
1 parent 8caf2bd commit 1c40ec1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static me.mrnavastar.sqlib.api.database.Database load(Path localDir, Path
try {
File configFile = new File(configDir + "/sqlib.toml");
if (!configFile.exists()) {
configFile.mkdirs();
configFile.getParentFile().mkdirs();
String data = new String(Objects.requireNonNull(SQLib.class.getResourceAsStream("/sqlib.toml")).readAllBytes()).replace("${local_path}", localDir.toString().replace("\\", "/"));
try (FileWriter writer = new FileWriter(configFile)) {
writer.write(data);
Expand Down

0 comments on commit 1c40ec1

Please # to comment.