From b8d91b0e7a580d6d35b3127c175668f36a9d91a6 Mon Sep 17 00:00:00 2001 From: Ludvig Lundgren Date: Sun, 26 Sep 2021 17:17:44 +0200 Subject: [PATCH] fix: add extension to watch folder action (#33) --- internal/action/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/action/run.go b/internal/action/run.go index 53a88b0..742ca94 100644 --- a/internal/action/run.go +++ b/internal/action/run.go @@ -183,7 +183,7 @@ func (s *service) watchFolder(dir string, torrentFile string) { fullFileName := path.Join(dir, tmpFileName) // Create new file - newFile, err := os.Create(fullFileName) + newFile, err := os.Create(fullFileName + ".torrent") if err != nil { log.Error().Stack().Err(err).Msgf("could not create new temp file '%v'", fullFileName) return