From 64eecd7f46e2e954e0b0ac46b3dce26fec64cdca Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 24 Feb 2024 13:04:46 -0800 Subject: [PATCH] Fix the path --- go.mod | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index f80fabc..fcaec40 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gitea.narnian.us/lordwelch/gcd_downloader -go 1.21.1 +go 1.21 require ( github.com/PuerkitoBio/goquery v1.8.1 diff --git a/main.go b/main.go index 9ed670e..1e4f1ed 100644 --- a/main.go +++ b/main.go @@ -288,7 +288,7 @@ func download(current time.Time) { // Update the times so the latest file is the uncompressed file currentTime := time.Now() - err = os.Chtimes(sqlite_filename, currentTime, currentTime) + err = os.Chtimes(filepath.Join(*destination, sqlite_filename), currentTime, currentTime) if err != nil { Fatal(err) }