[gnome-games] snapshot: Create the cache dir with parents



commit 94b8a2848fe30614857eced1c6c397e440d2945d
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Mar 21 02:21:59 2021 +0500

    snapshot: Create the cache dir with parents
    
    Avoid an error if the $XDG_CACHE_HOME/gnome-games dir wasn't present.

 src/core/snapshot.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/snapshot.vala b/src/core/snapshot.vala
index b4669ef6..4f23fd5c 100644
--- a/src/core/snapshot.vala
+++ b/src/core/snapshot.vala
@@ -153,7 +153,7 @@ public class Games.Snapshot : Object {
                var tmp_path = Path.build_filename (cache_path, "gnome-games", @"snapshot-$random");
 
                var dir = File.new_for_path (tmp_path);
-               dir.make_directory ();
+               dir.make_directory_with_parents ();
 
                var save_dir = dir.get_child ("save-dir");
                save_dir.make_directory ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]