From f0b5e99a7f8c1833e2a936188c2358eab7f78d1d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 21 Sep 2024 16:11:44 +0300 Subject: foo --- .gitignore | 3 +-- internal/queue/queue.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index bceb4a4..9ac4315 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -./data -./gosd +./gosdir ./gos diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 71dde71..a5ed77c 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -39,7 +39,7 @@ func queueEntries(args config.Args) error { now := time.Now() for filePath := range ch { destPath := fmt.Sprintf("%s/db/%s.%s.queued", args.GosDir, - now.Format("20060102-150405"), filepath.Base(filePath)) + filepath.Base(filePath), now.Format("20060102-150405")) if err := os.Rename(filePath, destPath); err != nil { return err } -- cgit v1.2.3