From eebc06fd56e0410c1461e6cf87ca2b21ee58617e Mon Sep 17 00:00:00 2001 From: milarin Date: Sun, 15 Jan 2023 14:17:26 +0100 Subject: [PATCH] debug --- handle_file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handle_file.go b/handle_file.go index db6996f..ccd2ee6 100644 --- a/handle_file.go +++ b/handle_file.go @@ -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 }