From 33bea9b20edd1200866b23d6b4857edc0f399f22 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Mon, 24 May 2021 22:22:37 +0100 Subject: [PATCH] first working prototype --- podcatch/podcatch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/podcatch/podcatch.go b/podcatch/podcatch.go index 236fe26..5aecabc 100644 --- a/podcatch/podcatch.go +++ b/podcatch/podcatch.go @@ -150,6 +150,7 @@ func createNFO(item Item, file string) { } } func markAsReceived(item Item) { + os.Mkdir(".db", 0777) file, err := os.OpenFile(".db/complete", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0755) if err != nil { log.Println(err) @@ -161,6 +162,7 @@ func markAsReceived(item Item) { } } func markAsErrored(item Item) { + os.Mkdir(".db", 0777) file, err := os.OpenFile(".db/error", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0755) if err != nil { log.Println(err)