[gnome-ostree/wip/gjs-round2] jsondb: Ensure we have snapshots directory



commit 339dba00e1ce5726b73b4abb6a766b142c361b5e
Author: Colin Walters <walters verbum org>
Date:   Fri Dec 14 17:38:32 2012 -0500

    jsondb: Ensure we have snapshots directory
    
    Might as well.

 src/ostbuild/js/jsondb.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/js/jsondb.js b/src/ostbuild/js/jsondb.js
index eb605fe..8ee935f 100644
--- a/src/ostbuild/js/jsondb.js
+++ b/src/ostbuild/js/jsondb.js
@@ -11,6 +11,7 @@ const JsonDB = new Lang.Class({
 
     _init: function(path, prefix) {
 	this._path = path;
+	GSystem.file_ensure_directory(this._path, true, null);
 	this._prefix = prefix;
 	this._re = /-(\d+)\.(\d+)-([0-9a-f]+).json$/;
 	this._maxVersions = 5;



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