You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jrnl: v3.3
Python: 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)]
OS: Windows 10
Current Behavior
When opening a folder journal (a journal whose path is a folder, not a file, as in FolderJournal.py), jrnl traverses through ALL txt files in the journal, whether or not they match the naming format we use (get_files method) and parses all of them as journal entries (open method).
This can lead to really strange behavior. If I have a text file like "readme.txt" in my jrnl, it suddenly becomes a jrnl entry.
It can also lead to jrnl crashing, if it can't parse the text files. See #1665 for a support case where that happens.
Expected Behavior
jrnl should only parse text files that are saved in its file naming format.
Repro Steps
I create a new dirtest jrnl in my jrnl.yaml config file:
dirtest:
journal: C:\temp\testing\dirtest\
I create a readme.txt file in that folder with the contents:
This is a readme
I run jrnl dirtest -1 and I get this output, but I wouldn't expect to see it:
micahellison
changed the title
jrnl reads extraneous text files in when reading folder journal type
jrnl reads extraneous text files when reading folder journal
Feb 25, 2023
Diagnostic output
Current Behavior
When opening a folder journal (a journal whose path is a folder, not a file, as in
FolderJournal.py
), jrnl traverses through ALLtxt
files in the journal, whether or not they match the naming format we use (get_files
method) and parses all of them as journal entries (open
method).This can lead to really strange behavior. If I have a text file like "readme.txt" in my jrnl, it suddenly becomes a jrnl entry.
It can also lead to jrnl crashing, if it can't parse the text files. See #1665 for a support case where that happens.
Expected Behavior
jrnl should only parse text files that are saved in its file naming format.
Repro Steps
I create a new
dirtest
jrnl in myjrnl.yaml
config file:I create a
readme.txt
file in that folder with the contents:I run
jrnl dirtest -1
and I get this output, but I wouldn't expect to see it:Debug output
Other Information
No response
The text was updated successfully, but these errors were encountered: