mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Use match instead of string comparison to be os-agnostic
This commit is contained in:
parent
c749cae227
commit
92aa6601ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue