From 3932b6bc686fe1d5dcf2f37d0bc16b98789cf587 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Fri, 11 Oct 2024 09:22:13 +0100 Subject: [PATCH] Fix importer --- tools/import/omnivore/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/import/omnivore/main.go b/tools/import/omnivore/main.go index e23c8bc4..efebcc92 100644 --- a/tools/import/omnivore/main.go +++ b/tools/import/omnivore/main.go @@ -91,7 +91,7 @@ func outputArticle(article Article, outputDir string) error { articlePath := path.Join(outputDir, fmt.Sprintf("%s.md", slug)) dirArticlePath := path.Join(outputDir, slug, "index.md") - if _, err := os.Stat(dirArticlePath); os.IsNotExist(err) { + if _, err := os.Stat(dirArticlePath); err == nil { articlePath = dirArticlePath }