Forcing parent directory creation.
This commit is contained in:
parent
fbd68dcb9d
commit
59d2b38357
@ -268,6 +268,7 @@ void create_select_party_image_button (Gtk.Picture picture, Gtk.Box input_fields
|
||||
Sqlite.Database get_db () {
|
||||
Sqlite.Database db;
|
||||
string home = GLib.Environment.get_home_dir ();
|
||||
GLib.DirUtils.create_with_parents (GLib.Path.get_dirname (@"$home$S$SQLITE_PATH"), 700);
|
||||
string final_sqlite_path = @"$home$S$SQLITE_PATH";
|
||||
print(final_sqlite_path);
|
||||
int rc = Sqlite.Database.open (final_sqlite_path, out db);
|
||||
|
Loading…
Reference in New Issue
Block a user