• exec/filelist.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue May 23 19:24:51 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/9c7ecc89274d7d103e36a570
    Modified Files:
    exec/filelist.js
    Log Message:
    Add options: -utf8, -strip, -user=<name>The -strip option requires the (new to v3.20) strip_ctrl_a() methodPreviously, when using the -all or -lib options, all directories would beincluded in the filelist, but with the -user option, a valid user (e.g.-user=guest, or -user=sysop) can be specfied to limit the scope of the listto only directories accessible to the specified user (and downloads allowedto the user as well).The -utf8 option encodes all output in UTF-8 (instead of CP437) while the-strip option strips any Ctrl-A (attribute) sequences from the output.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue May 30 19:32:21 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/12155a2bedd44fa37dff9ae9
    Modified Files:
    exec/filelist.js
    Log Message:
    Add -out=filename as redirection isn't always an optione.g. when running filelist.js as a timed event, you can't redirect stdout(without running via jsexec), so let's support specifying an outputfilename with an option (-out=filename).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Feb 10 21:36:09 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/1c15e56ff3b8e63d9873d1a4
    Modified Files:
    exec/filelist.js
    Log Message:
    Fix issues with file sorting

    The case-sensitive/insensitive logic was backwards
    (-i enabled case-sensitive sorting)

    The re-sorting by name was always occurring when the -sort option was used.

    Case-insensitive sorting by numeric properties (e.g. size) didn't work right. --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Oct 25 16:53:09 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/9ab7436b01bbe4f21a44a2db
    Modified Files:
    exec/filelist.js
    Log Message:
    Better application of the -user=name argument

    Parse it before all other options (e.g. before -all).

    Filter out non-accessible directories from the prompt and from the list generation.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Oct 25 16:53:09 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/6073f99d0b20e73ddbac90ea
    Modified Files:
    exec/filelist.js
    Log Message:
    Allow the -utf8 option to work with the -json option

    Previously, the content (e.g. file descriptions) would still be CP437 encoded even when then -utf8 option was used (but only in combination with -json).
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)