• exec/filelist.js

    From Rob Swindell (on Debian Linux)@VERT 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() method

    Previously, when using the -all or -lib options, all directories would be included 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 list
    to only directories accessible to the specified user (and downloads allowed
    to 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.

    ---
    þ 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 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 option

    e.g. when running filelist.js as a timed event, you can't redirect stdout (without running via jsexec), so let's support specifying an output
    filename with an option (-out=filename).

    ---
    þ 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 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.

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