• Importing FILES.BBS with extended descriptions

    From nolageek@1:103/705 to All on Thu Jan 19 12:38:34 2023
    I am trying to import directories using a FILES.BBS in each directory with extended descriptions that are not contained on a single line. Does addfiles.js support the use of extended description line prefixes so that they can be formatted instead of being all on one wrapped line? If so, what format is it expecting the FILES.BBS to be in? I've based mine off of an export using filelist.js and including the extended description prefix of |:

    jsexec filelist.js -ext="|" ark_16c

    |15n|03ola|15g|03eek |10<|02phenom|10>|07
    |12C|04APiT0L |12S|04HRiLL|07

    ---
    þ Synchronet þ Capitol Shrill BBS - Washington, DC - capitolshrill.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nolageek@1:103/705 to All on Thu Jan 19 12:57:32 2023
    Re: Importing FILES.BBS with extended descriptions
    By: nolageek to All on Thu Jan 19 2023 12:38 pm

    Also, one more thing I noticed is that if I have a file name of "Halloween(1973).txt" that addfiles.js gives an error when reporting that it cannot find the file named "Halloween" - it doesn't like the parenthesis in the filename.

    |15n|03ola|15g|03eek |10<|02phenom|10>|07
    |12C|04APiT0L |12S|04HRiLL|07

    ---
    þ Synchronet þ Capitol Shrill BBS - Washington, DC - capitolshrill.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to nolageek on Thu Jan 19 17:48:36 2023
    Re: Importing FILES.BBS with extended descriptions
    By: nolageek to All on Thu Jan 19 2023 12:38 pm

    I am trying to import directories using a FILES.BBS in each directory with extended descriptions that are not contained on a single line. Does addfiles.js support the use of extended description line prefixes so that they can be formatted instead of being all on one wrapped line? If so, what format is it expecting the FILES.BBS to be in? I've based mine off of an export using filelist.js and including the extended description prefix of |:

    jsexec filelist.js -ext="|" ark_16c

    Why are you overriding the default prefix? Just specify '-ext', and your export FILES.BBS (from filelist.js) will look like so:

    1linephp.zip 2.8K bbs ______ ____ ____ ____ ____
    | / ___// ___\/ __ \ / \_/ __ \
    | \___ \\ \__\ ___/| | \ ___/.org
    | /____ >\___ >___ >___| /\___ >
    | +<:<---\/-----\/----\/-----\/-----\/>:>+
    | ! bbs-scene_onelinerz.php by netsurge |
    | |______________________________________;
    | + Sample php code for anyone wanting :
    | : to display the global onelinerz +
    | ] from bbs-scene.org on a php powered ;
    | ! website :
    | : http://bbs-scene.org for more info [
    | +--------------------------------------+

    And then I re-importing that same FILES.BBS back into an SBBS v3.19+ filebase using addfiles.js:

    $ jsexec addfiles test FILES.BBS

    JSexec v3.20a-Linux master/d797b7598 Debug - Execute Synchronet JavaScript Module
    Compiled Jan 16 2023 19:42:25 with GCC 12.2.0

    Loading configuration files from /sbbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 16777216 bytes

    Reading script from /sbbs/exec/addfiles.js
    /sbbs/exec/addfiles.js compiled in 0.00 seconds
    Adding files to Main test
    Opening /xfer/TEST/FILES.BBS
    ...
    Added 1linephp.zip

    and then listing that file in the BBS shows the intact extended description:

    [D]ownload [B]atch [V]iew Content [E]xtended Info [P]revious Page [Q]uit 1linephp.zip A 2.8K K bbs ______ ____ ____ ____ ____
    / ___// ___\/ __ \ / \_/ __ \
    \___ \\ \__\ ___/| | \ ___/.org
    /____ >\___ >___ >___| /\___ >
    +<:<---\/-----\/----\/-----\/-----\/>:>+
    ! bbs-scene_onelinerz.php by netsurge |
    |______________________________________;
    + Sample php code for anyone wanting :
    : to display the global onelinerz +
    ] from bbs-scene.org on a php powered ;
    ! website :
    : http://bbs-scene.org for more info [
    +--------------------------------------+

    And exporting the FILES.BBS again with filelist.js gives me the same original content:

    1linephp.zip 2.8K K bbs ______ ____ ____ ____ ____
    | / ___// ___\/ __ \ / \_/ __ \
    | \___ \\ \__\ ___/| | \ ___/.org
    | /____ >\___ >___ >___| /\___ >
    | +<:<---\/-----\/----\/-----\/-----\/>:>+
    | ! bbs-scene_onelinerz.php by netsurge |
    | |______________________________________;
    | + Sample php code for anyone wanting :
    | : to display the global onelinerz +
    | ] from bbs-scene.org on a php powered ;
    | ! website :
    | : http://bbs-scene.org for more info [
    | +--------------------------------------+

    I don't see any issue. Or I'm not understanding your question.
    --
    digital man (rob)

    Rush quote #25:
    Throw off those chains of reason and your prison disappears
    Norco, CA WX: 50.1øF, 82.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to nolageek on Thu Jan 19 17:50:52 2023
    Re: Importing FILES.BBS with extended descriptions
    By: nolageek to All on Thu Jan 19 2023 12:57 pm

    Re: Importing FILES.BBS with extended descriptions
    By: nolageek to All on Thu Jan 19 2023 12:38 pm

    Also, one more thing I noticed is that if I have a file name of "Halloween(1973).txt" that addfiles.js gives an error when reporting that it cannot find the file named "Halloween" - it doesn't like the parenthesis in the filename.

    You can try experimenting with the regular expression on this line in exec/addfiles.js to allow parens in filenames:

    var match = line.match(/(^[\w]+[\w\-\!\#\.]*)\W+[^A-Za-z]*(.*)/);

    Another option is try addfiles[.exe] (the native utility). It's deprecated but may still work for you use case.
    --
    digital man (rob)

    Rush quote #11:
    Struck between the eyes by the big time world, walking uneasy streets
    Norco, CA WX: 50.1øF, 82.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)