mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix: add extension to watch folder action (#33)
This commit is contained in:
parent
66048c5533
commit
b8d91b0e7a
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ func (s *service) watchFolder(dir string, torrentFile string) {
|
||||||
fullFileName := path.Join(dir, tmpFileName)
|
fullFileName := path.Join(dir, tmpFileName)
|
||||||
|
|
||||||
// Create new file
|
// Create new file
|
||||||
newFile, err := os.Create(fullFileName)
|
newFile, err := os.Create(fullFileName + ".torrent")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Stack().Err(err).Msgf("could not create new temp file '%v'", fullFileName)
|
log.Error().Stack().Err(err).Msgf("could not create new temp file '%v'", fullFileName)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue