From 92aa6601ab9b0e3ecac5750a1e5623ad1840df50 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 18 Mar 2023 15:27:48 -0700 Subject: [PATCH] Use match instead of string comparison to be os-agnostic --- jrnl/journals/FolderJournal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/journals/FolderJournal.py b/jrnl/journals/FolderJournal.py index e1dd7977..188e090e 100644 --- a/jrnl/journals/FolderJournal.py +++ b/jrnl/journals/FolderJournal.py @@ -137,7 +137,7 @@ class Folder(Journal): for child in path.iterdir(): if ( child.stem in Folder.DAY_FILE_STEMS - and child.suffix.lower() == ".txt" + and child.match("*.txt") and child.is_file() ): yield str(child)