Forcing parent directory creation.

This commit is contained in:
sergiotarxz 2022-06-30 10:29:31 +02:00
parent fbd68dcb9d
commit 59d2b38357

View File

@ -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);