• Creating (Adding) files in the Text File Section

    From W5jsn@1:103/705 to All on Fri Sep 20 09:20:33 2024
    I am getting errors from trying to Add in the Text File Section. It seems that only a reference in the (section).ini file is produced and text_sec.js farts on the fact that no file is created. Once you hit A for Add, the metadata is requested (filename and description) and then you are dumped back to the Section listing, which is updated with the new description. I would think that the A command would also present the editor and, upon entering text, save it to the indicated file, but it doesn't.

    All attempts to reference that text file from the esction listing (like "information") result in a "No filename specified" error at either line 170 or 200, depending on using the A command or the list number to read the non-existent file.

    If I put a textfile (outside the BBS) in place with the proper filename from the .ini file, everything works fine in editing and reading that file through the BBS, so the basic mechanism is working.

    Is there meant to be a file edition/creation happening after the metadata entry in the (A)dd command? If so, I would respectfully like a fix, probably in text_sec.js .

    ---
    ■ Synchronet ■ Tucumcari BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to W5jsn on Fri Sep 20 19:20:50 2024
    Re: Creating (Adding) files in the Text File Section
    By: W5jsn to All on Fri Sep 20 2024 09:20 am

    I am getting errors from trying to Add in the Text File Section. It seems that only a reference in the (section).ini file is produced and text_sec.js farts on the fact that no file is created. Once you hit A for Add, the metadata is requested (filename and description) and then you are dumped back to the Section listing, which is updated with the new description. I would think that the A command would also present the editor and, upon entering text, save it to the indicated file, but it doesn't.

    It sounds like you're entering the name of a file that doesn't exist?
    Like this?

    Which, Add, Remove, Edit, or Quit: A

    Before which file [last]:

    Path and filename (no path indicates /sbbs/data/text/operator/filename): alksdjf

    File not found.
    /sbbs/data/text/operator/alksdjf

    Description:
    alksdjf

    If so, that's as expected.

    All attempts to reference that text file from the esction listing (like "information") result in a "No filename specified" error at either line 170 or 200, depending on using the A command or the list number to read the non-existent file.

    You're expected to add files that already exist.

    If I put a textfile (outside the BBS) in place with the proper filename from the .ini file, everything works fine in editing and reading that file through the BBS, so the basic mechanism is working.

    Is there meant to be a file edition/creation happening after the metadata entry in the (A)dd command?

    No. That feature could be added I suppose, but it's never worked like that.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #30:
    FDSZ = FOSSIL DSZ (by Chuck Forsberg)
    Norco, CA WX: 65.9°F, 72.0% humidity, 8 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)