move the journal.txt file to an ignored subdirectory

This commit is contained in:
Jesse D. McDonald 2020-04-23 22:44:11 -05:00
parent b43eee044c
commit cc36063771
2 changed files with 3 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,8 +1,8 @@
node_modules node_modules
journal.txt journal.txt
*.bak bak/
*.bak2
radata/ radata/
journal/
stats.radata stats.radata
.*.swp .*.swp
.*.swo .*.swo

View File

@ -49,7 +49,7 @@
let lastJournalText = null; let lastJournalText = null;
function appendJournal(text) { function appendJournal(text) {
if (text !== lastJournalText) { if (text !== lastJournalText) {
fs.appendFileSync('journal.txt', text + '\n'); fs.appendFileSync('journal/journal.txt', text + '\n');
lastJournalText = text; lastJournalText = text;
} }
} }