From c6fbbbded8463fc94e5af223246eac97d538a9e5 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 4 May 2024 20:22:23 +0200 Subject: model: Add storage.Exists() and storage.Create() These new methods provide essential functionality related to the storage folder. --- main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 937fa8e..da06f8e 100644 --- a/main.go +++ b/main.go @@ -31,6 +31,9 @@ func main() { } storage := model.Storage{Path: config.StorageFilePath} + if !storage.Exists() { + storage.Create() + } storage.Init(gitDescribe) model.InitDatabase(config.StorageFilePath) -- cgit v1.2.3-70-g09d2