• exec/filelist.js

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Apr 8 02:32:50 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/46c91758efc0682c8422fe73
    Modified Files:
    exec/filelist.js
    Log Message:
    Pretty much a complete re-write and still a work-in-progress, but useful

    The biggest difference is that you can combine all files from multiple dirs into a single sorted list and you can sort on any property (field) value.

    The byte/credit format is very customizeable, the output format is completely customizeable.

    By default, just the filenames are output, but either use '-ext' or one or
    more '-v' values to add more fields. Use -p=list to specify a comma-separated list of properties to print.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Apr 11 21:01:34 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/9869228808f5b03bbf2418e3
    Modified Files:
    exec/filelist.js
    Log Message:
    Add configurable size formatting, filename formatting, ext-description offset

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Apr 16 18:53:10 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/810c3d8e9b31ec7c4f6ddcfd
    Modified Files:
    exec/filelist.js
    Log Message:
    Optionally include newest-file-in-archive date/time and other features

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Jun 7 22:33:38 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/cc5f066a01c25a2c6f99cb9e
    Modified Files:
    exec/filelist.js
    Log Message:
    Remove the unused "-arc" option parsing.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Jun 7 22:33:38 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/6c1e03f96814579ee257be13
    Modified Files:
    exec/filelist.js
    Log Message:
    Add -desc option (include summary/descriptions, same as '-vv')

    The -hdr option no longer implies -ext (extended descriptions).

    Truncate white-space off end of extended descriptions.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Feb 16 17:50:03 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/b67a5a2695b0da87c981309a
    Modified Files:
    exec/filelist.js
    Log Message:
    Don't include both normal and extended file descriptions by default

    As pointed out by DesotoFireflite (VALHALLA), both the file's
    short/normal description and the extended description were being
    included in all file listings. This is probably want most sysops
    will want since the extended description is often used as the content
    of the short/normal description, resulting in repeated content. So,
    by default, if there is an extended file description, don't output
    the short/normal file description.

    If you want to include *both* the short and extended descriptions
    (for files that have both), include both the -ext and -desc command
    line options.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Feb 17 11:29:37 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/a77e846bc30f8df37fd43197
    Modified Files:
    exec/filelist.js
    Log Message:
    Strip carriage returns from extended descriptions

    On Windows, CRs in extended descriptions could result in output of
    \r\r\n which could be displayed as 2 newlines (e.g. in notepad.exe).
    Since the \n -> \r\n expansion already happens on Windows stdout,
    we don't want them in the processed input (file metadata).

    As reported by DesotoFireflite (VALHALLA), thank you!

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