fix: add extension to watch folder action (#33)

This commit is contained in:
Ludvig Lundgren 2021-09-26 17:17:44 +02:00 committed by GitHub
parent 66048c5533
commit b8d91b0e7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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