mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 14:36:19 +02:00
Fix NDX filenames
This commit is contained in:
parent
c6bde65be0
commit
2b1747a8f4
1 changed files with 1 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue