• exec/filelist.js

    From Rob Swindell (on Debian Linux) 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.
  • From Rob Swindell (on Debian Linux) 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).
  • From Rob Swindell (on Debian Linux) 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.
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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.
  • From Rob Swindell (on Debian Linux)@rob@synchro.net 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).