first working prototype

This commit is contained in:
Paul Wilde 2021-05-24 22:22:37 +01:00
parent a21faec8ff
commit 33bea9b20e

View file

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