• exec/load/filebase.js

    From echicken@VERT to Git commit to main/sbbs/master on Wed Jan 27 12:01:06 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/1e28b7ceb41182f6723f309c
    Modified Files:
    exec/load/filebase.js
    Log Message:
    For FileEntry.name, just return base if ext is empty.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Apr 17 13:37:40 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/ea1d2248af1388e863b0c5f6
    Modified Files:
    exec/load/filebase.js
    Log Message:
    Replace the guts of OldFileBase to make it v3.19 compatible

    This appears to be enough to make hatchit.js work again and file
    listings in webv4 (not sure beyond that).

    This file is now just an unnecessary shim and should go away when
    the consumers (hatchit and webv4) no longer need it.

    I did not "port" support for the file properties:
    - base
    - ext
    - datoffset
    - opencount
    - misc
    - altpath

    They don't appear to be needed.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Nov 11 23:39:43 2026
    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