move the journal.txt file to an ignored subdirectory
This commit is contained in:
parent
b43eee044c
commit
cc36063771
|
|
@ -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
|
||||||
|
|
|
||||||
2
index.js
2
index.js
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue