• docs/v322_new.md src/sbbs3/listfile.cpp

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, November 19, 2026 11:51:45
    https://gitlab.synchro.net/main/sbbs/-/commit/a324eb90f5f5fd77fadded77
    Modified Files:
    docs/v322_new.md src/sbbs3/listfile.cpp
    Log Message:
    listfiles(): skip directories with no new files before a List Files module

    In a new-file scan, listfiles() invoked a configured List Files loadable
    module for every directory, before its own (fast) check for new files.
    Starting a JavaScript module costs about 25 ms per directory, so a scan
    of hundreds of directories with few new files took many seconds longer
    with a module than with the built-in lister, for no output.

    The new-file check (and the update of the user's new-file scan time) now
    comes first, and a directory with no new files returns 0 without
    invoking the module. A module is still invoked, with the same arguments,
    for every directory that has new files and for every other kind of
    listing.

    Note for DDFileLister (Nightfox) users: installed as the List Files
    module, it printed "No new files found in <library>: <directory>" for
    each directory without new files during a new-file scan; it is no
    longer invoked for those directories, so those lines no longer appear,
    matching the built-in lister. Its use as the Scan Dirs module is
    unaffected.

    Fixes #1359

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net