This commit is contained in:
milarin 2023-01-15 14:17:26 +01:00
parent 8c1f23d4a4
commit eebc06fd56

View File

@ -1,6 +1,7 @@
package main
import (
"errors"
"io"
"os"
"path/filepath"
@ -80,7 +81,7 @@ func OrganizeAnimeEpisode(b *strings.Builder, parsedFile *model.ParsedFile) erro
return err
}
if _, err := os.Stat(newFile); err != nil { // !errors.Is(err, os.ErrNotExist)
if _, err := os.Stat(newFile); err != nil && !errors.Is(err, os.ErrNotExist) {
return err
}