• exec/addfiles.js

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Apr 4 19:12:49 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/0346fe759cce3c48d3cf971c
    Modified Files:
    exec/addfiles.js
    Log Message:
    Add option (-delete) to delete the list file after import

    Like the -d option for ADDFILES.

    For Al (TRMB)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Apr 7 00:10:29 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/b29f0fa81100c7e670edb069
    Modified Files:
    exec/addfiles.js
    Log Message:
    Replace print() with writeln()

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Apr 17 00:21:47 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d06825b3e636a082b9731d0a
    Modified Files:
    exec/addfiles.js
    Log Message:
    Make --help work and copy the option parsing logic from filelist.js

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Feb 23 18:03:27 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/7723edad5c5233228599228b
    Modified Files:
    exec/addfiles.js
    Log Message:
    Add -file=name|pattern option to specify files to add/update

    postfile.js still should be used for adding a single file to a filebase,
    but when updating a single file, this seemed like a simple enhancement.
    It also allows filtering of files to be added by wildcard (e.g. *.zip),
    so potentially useful for adding files too.

    Address enhancement request #348

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Sep 16 18:56:13 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/baa41e238a8f79325f4e3ea9
    Modified Files:
    exec/addfiles.js
    Log Message:
    Document -auto option

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Sun Mar 5 13:58:08 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/88e013a0a21a7fde9bca1af6
    Modified Files:
    exec/addfiles.js
    Log Message:
    Add support for an optional description character offset (number) arg

    If all descriptions start a fixed offset and the default parsing
    logic (regex) isn't working for the sysop, they can specify the exact
    error offset to use for the beginning of each file's description. This
    offset is only used for the initial line of the description, not the continuation lines, but perhaps that could be done if needed.

    This is an attempt to address issue #530

    I first attempted to use "Lookbehind Assertions" in the regex, but
    didn't have any success and decided the brute force method that the
    old addfiles utility used might be as simpler solution and provide an
    effective work-around for more potential issues with auto-detecting
    the beginning of the useful file description.

    I also added descriptions of the optional arguments to the help output.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Sun Mar 5 19:12:15 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/2d3a68a87956163e160df6a3
    Modified Files:
    exec/addfiles.js
    Log Message:
    Fix typo in help 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 Sun Nov 3 05:17:31 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/774127e34c43e620e3779ca5
    Modified Files:
    exec/addfiles.js
    Log Message:
    Use a different variable name (libname) to not clobber the lib variable

    Fix to Nelgin's reported error:
    line 199: TypeError: lib.parse is not a function

    ---
    ■ 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 Sun Nov 3 05:20:21 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d9c5f963f0575eb9ebcbc9e3
    Modified Files:
    exec/addfiles.js
    Log Message:
    Use var keyword for good form (no functional change)

    ---
    ■ 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 Sun Nov 3 17:12:01 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/8cf795161023f810ae1066f2
    Modified Files:
    exec/addfiles.js
    Log Message:
    Actually, const is better for libs, prevent overwriting (mostly)

    If this were const to begin with, would have caught the previously
    fixed bug with the -lib option clobbering it.

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