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)