• exec/tests/atcodes/file_codes.js exec/tests/listfiles_bridges/bridges.

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Wednesday, November 18, 2026 19:34:16
    https://gitlab.synchro.net/main/sbbs/-/commit/e4cea8a6e507399566d659b7
    Added Files:
    exec/tests/atcodes/file_codes.js exec/tests/listfiles_bridges/bridges.js skipif
    Modified Files:
    src/sbbs3/js_bbs.cpp js_filebase.cpp sbbs.h
    Log Message:
    JS bbs object: @FILE_*@ codes and per-file actions for file listers

    For JavaScript file listers, such as a List Files loadable module (#1353):

    bbs.expand_atcodes(string, file, dir_code) expands the @FILE_*@ codes
    (with their width/alignment modifiers) for a FileBase file metadata object
    in the directory with the internal code dir_code, as is already done for
    the MSG_* codes with a message header object.

    New methods act on one file in a directory, given its internal code and the filename, with the built-in file lister's checks and messages:
    - bbs.batch_add_file(dir_code, filename): add it to the batch download
    queue
    - bbs.view_file_info(dir_code, filename [,extended=true]): display its
    extended information (or contents) and prompt for an action
    - bbs.remove_file(dir_code, filename [,delete_file] [,remove_credits]) and
    bbs.move_file(dir_code, filename, dest_dir_code): when the current user
    may remove files from that directory

    Tests: exec/tests/atcodes/file_codes.js and exec/tests/listfiles_bridges/ (skipped unless there's a file directory with the internal code LISTFILES_TEST).

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)