• exec/filelist.js

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, April 08, 2021 02:32:50
    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 Sunday, April 11, 2021 21:01:34
    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 Friday, April 16, 2021 18:53:10
    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 Monday, June 07, 2021 22:33:38
    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 Monday, June 07, 2021 22:33:38
    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 Wednesday, February 16, 2022 17:50:03
    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 Thursday, February 17, 2022 11:29:37
    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 Tuesday, May 23, 2023 19:24:51
    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 Tuesday, May 30, 2023 19:32:21
    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 Saturday, February 10, 2024 21:36:09
    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