mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
Fix views in area browser, change 'ignore' to 'exclude' during scan
This commit is contained in:
parent
6cbe574d4e
commit
1d86be6e34
2 changed files with 9 additions and 9 deletions
|
@ -85,7 +85,7 @@ function finalizeEntryAndPersist(fileEntry, descHandler, cb) {
|
|||
);
|
||||
}
|
||||
|
||||
const SCAN_IGNORE_FILENAMES = [ 'DESCRIPT.ION', 'FILES.BBS' ];
|
||||
const SCAN_EXCLUDE_FILENAMES = [ 'DESCRIPT.ION', 'FILES.BBS' ];
|
||||
|
||||
function loadDescHandler(path, cb) {
|
||||
const DescIon = require('../../core/descript_ion_file.js');
|
||||
|
@ -128,8 +128,8 @@ function scanFileAreaForChanges(areaInfo, options, cb) {
|
|||
async.eachSeries(files, (fileName, nextFile) => {
|
||||
const fullPath = paths.join(physDir, fileName);
|
||||
|
||||
if(SCAN_IGNORE_FILENAMES.includes(fileName.toUpperCase())) {
|
||||
process.stdout.write(`Ignoring ${fullPath}`);
|
||||
if(SCAN_EXCLUDE_FILENAMES.includes(fileName.toUpperCase())) {
|
||||
console.info(`Excluding ${fullPath}`);
|
||||
return nextFile(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue