• exec/load/filebase.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, November 11, 2026 23:39:43
    https://gitlab.synchro.net/main/sbbs/-/commit/3549f347b6ce78f96324c203
    Modified Files:
    exec/load/filebase.js
    Log Message:
    filebase.js: don't re-check files that get_list() already found

    In a directory with file existence checking enabled, FileBase.get_list()
    has already checked each file: a missing file's size is -1. OldFileBase() checked each one again with file_getcase(), a network round trip per file
    where the file area is on a network share. It now uses get_list()'s size
    to tell whether the file exists, and calls file_getcase() only on a case-sensitive file system (not Windows), to correct the name's case.

    In a directory without existence checking, a file's path is returned
    without checking for the file, as FileBase.get_path() does.

    On a Windows host serving a 3,607-file directory from a Samba share, the
    webv4 Files page for that directory now takes 5 seconds (was 12).

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

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