Use match instead of string comparison to be os-agnostic

This commit is contained in:
Micah Jerome Ellison 2023-03-18 15:27:48 -07:00
parent c749cae227
commit 92aa6601ab

View file

@ -137,7 +137,7 @@ class Folder(Journal):
for child in path.iterdir(): for child in path.iterdir():
if ( if (
child.stem in Folder.DAY_FILE_STEMS child.stem in Folder.DAY_FILE_STEMS
and child.suffix.lower() == ".txt" and child.match("*.txt")
and child.is_file() and child.is_file()
): ):
yield str(child) yield str(child)