mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Creating .wlgb directory if it isn't there.
This commit is contained in:
parent
832009e6cf
commit
0442cd7e0b
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ public class SQLiteWLDatabase {
|
|||
public SQLiteWLDatabase(File rootGitDirectory) throws SQLException, ClassNotFoundException {
|
||||
this.rootGitDirectory = rootGitDirectory;
|
||||
File databaseFile = new File(rootGitDirectory, "/.wlgb/wlgb.db");
|
||||
databaseFile.getParentFile().mkdirs();
|
||||
System.out.println("Loading data...");
|
||||
Class.forName("org.sqlite.JDBC");
|
||||
connection = DriverManager.getConnection("jdbc:sqlite:" + databaseFile.getAbsolutePath());
|
||||
|
|
Loading…
Reference in a new issue