From 2b1747a8f451deb639b2de2a0c89f75014a3613c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 3 May 2020 11:17:33 -0600 Subject: [PATCH] Fix NDX filenames --- core/qwk_mail_packet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/qwk_mail_packet.js b/core/qwk_mail_packet.js index c1e58bc0..69617866 100644 --- a/core/qwk_mail_packet.js +++ b/core/qwk_mail_packet.js @@ -1426,7 +1426,7 @@ class QWKPacketWriter extends EventEmitter { async.eachSeries(this.publicIndex.keys(), (areaTag, nextArea) => { const offsets = this.publicIndex.get(areaTag); const conferenceNumber = this._getMessageConferenceNumberByAreaTag(areaTag); - const indexStream = fs.createWriteStream(paths.join(this.workDir, `${conferenceNumber.toString()}.ndx`)); + const indexStream = fs.createWriteStream(paths.join(this.workDir, `${conferenceNumber.toString().padStart(4, '0')}.ndx`)); offsets.forEach(offset => appendIndexData(indexStream, offset)); indexStream.on('close', err => {