• A couple of questions

    From apam@VERT/HAPPYLND to All on Tue Apr 9 12:41:12 2024
    I'm using ddfilelister and DDAreaListers so unsure if this is a question about those mods or synchronet itself..

    1) How long do files stay "new"?

    I'm doing a new scan each day since i started and it appears to show my all the
    files in my file base each time.

    2) Is it possible to disable the virtual subdirectory feature?

    If not, is there specific characters to avoid using to have it make these virtual subdirectories.

    Thanks,

    Andrew

    ---
    ■ Synchronet ■ HappyLand - happylnd.synchro.net
  • From Digital Man@VERT to apam on Mon Apr 8 20:16:58 2024
    Re: A couple of questions
    By: apam to All on Tue Apr 09 2024 12:41 pm

    I'm using ddfilelister and DDAreaListers so unsure if this is a question about those mods or synchronet itself..

    1) How long do files stay "new"?

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    I'm doing a new scan each day since i started and it appears to show my all the
    files in my file base each time.

    2) Is it possible to disable the virtual subdirectory feature?

    Which feature is that exaclty?

    If not, is there specific characters to avoid using to have it make these virtual subdirectories.

    This sounds like a DD specific feature.
    --
    digital man (rob)

    Rush quote #10:
    To you, is it movement or is it action? Is it contact or just reaction?
    Norco, CA WX: 62.6°F, 37.0% humidity, 3 mph WNW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Apam@VERT to Digital Man on Mon Apr 8 20:51:43 2024
    Re: A couple of questions
    By: Digital Man to apam on Mon Apr 08 2024 08:16 pm

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    That's what I would have thought too. After I typed the message, I discovered the file scan pointer date, and noticed it was for the 6th of april, I changed it to the 9th, but still it listed all the files. I'll try disabling the DD mods.

    Which feature is that exaclty?

    Well, I'm not sure what they are called in synchronet of the top of my head, but say they're file groups and file areas, it seems to split up some of the areas into sub areas, like this

    File Group
    |
    |--File Area
    |--File Area 2
    |--File SubArea
    | |-- File Area 3
    | |-- File Area 4
    |--File Area 5

    There is an option in scfg, under file groups:

    Virtual Sub-Directories

    with the option of:
    Internal Code Suffix
    Short Name
    Long Name

    I thought maybe that was the feature that is causing the sub area

    Anyway, I'll try with the dd stuff disabled

    Thanks for the help :)

    Andrew

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Apam on Mon Apr 8 20:57:07 2024
    Re: A couple of questions
    By: Apam to Digital Man on Mon Apr 08 2024 08:51 pm

    Re: A couple of questions
    By: Digital Man to apam on Mon Apr 08 2024 08:16 pm

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    That's what I would have thought too. After I typed the message, I discovered the file scan pointer date, and noticed it was for the 6th of april, I changed it to the 9th, but still it listed all the files. I'll try disabling the DD mods.

    Which feature is that exaclty?

    Well, I'm not sure what they are called in synchronet of the top of my head, but say they're file groups and file areas, it seems to split up some of the areas into sub areas, like this

    File Group
    |
    |--File Area
    |--File Area 2
    |--File SubArea
    | |-- File Area 3
    | |-- File Area 4
    |--File Area 5

    There is an option in scfg, under file groups:

    Virtual Sub-Directories

    with the option of:
    Internal Code Suffix
    Short Name
    Long Name

    I thought maybe that was the feature that is causing the sub area

    No, that's a different feature (impacting Synchronet FTP and HTTP server representation of file directories) and not something you can turn off.

    Anyway, I'll try with the dd stuff disabled

    Sure. I don't know what Nightfox calls that feature, but I assume it's configurable.
    --
    digital man (rob)

    Rush quote #68:
    He's a radio receiver, tuned to factories and farms .. New World Man
    Norco, CA WX: 62.1°F, 38.0% humidity, 5 mph W wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Apam@VERT to Digital Man on Mon Apr 8 21:04:44 2024
    Re: A couple of questions
    By: Digital Man to Apam on Mon Apr 08 2024 08:57 pm

    Sure. I don't know what Nightfox calls that feature, but I assume it's configurable.

    Yep, it was. I was looking at the wrong config file before, ddfilelister.cfg instead of DDFileAreaChooser.cfg

    That's all sorted now :)

    Thank

    Andrew

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Apam on Mon Apr 8 21:43:40 2024
    Re: A couple of questions
    By: Apam to Digital Man on Mon Apr 08 2024 08:51 pm

    That's what I would have thought too. After I typed the message, I discovered the file scan pointer date, and noticed it was for the 6th of april, I changed it to the 9th, but still it listed all the files. I'll try disabling the DD mods.

    I think there's a bug in DDFileLister related to the new file scan. But there's something I don't quite understand that I'll have to work out.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Digital Man on Mon Apr 8 21:47:46 2024
    Re: A couple of questions
    By: Digital Man to apam on Mon Apr 08 2024 08:16 pm

    1) How long do files stay "new"?

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    I have my ddfilelister set up as a loadable module. When doing a new file scan, I've noticed my file lister is executed for each sub-board, and the sub-board code is passed in and the scan mode is passed in via argv. When doing a new file scan, I've been checking bbs.new_file_time. It seems I could set bbs.new_file_time to the current time when it's done, but that would mean when ddfilelister is executed for the next file directory, it won't list any new files because bbs.new_file_time would have been set to the current date/time.

    So, I don't know if it should be ddfilelister's responsibility to update bbs.new_file_time or not?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Tue Apr 9 10:53:16 2024
    Re: A couple of questions
    By: Nightfox to Digital Man on Mon Apr 08 2024 09:47 pm

    Re: A couple of questions
    By: Digital Man to apam on Mon Apr 08 2024 08:16 pm

    1) How long do files stay "new"?

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    I have my ddfilelister set up as a loadable module. When doing a new file scan, I've noticed my file lister is executed for each sub-board, and the sub-board code is passed in and the scan mode is passed in via argv. When doing a new file scan, I've been checking bbs.new_file_time. It seems I could set bbs.new_file_time to the current time when it's done, but that would mean when ddfilelister is executed for the next file directory, it won't list any new files because bbs.new_file_time would have been set to the current date/time.

    So, I don't know if it should be ddfilelister's responsibility to update bbs.new_file_time or not?

    No, it is not your module's responsibility to update bbs.new_file_time.
    --
    digital man (rob)

    Synchronet "Real Fact" #86:
    Stephen and Rob have a fledgling podcast at http://techdorks.net (also iTunes) Norco, CA WX: 72.4°F, 18.0% humidity, 7 mph W wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue Apr 9 11:15:53 2024
    Re: A couple of questions
    By: Digital Man to Nightfox on Tue Apr 09 2024 10:53 am

    No, it is not your module's responsibility to update bbs.new_file_time.

    With ddfilelister set up as a loadable module, it seems bbs.new_file_time isn't being updated when I do a new file scan. As a test, I tried setting my new file scan pointer back to January 1, 2024 (to make sure it was at an earlier time), and did a couple of new file scans in my current directory. ddfilelister prints bbs.new_file_time, and both times, it showed the January 1, 2024 date I had set and listed the same files.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Tue Apr 9 11:53:04 2024
    Re: A couple of questions
    By: Nightfox to Digital Man on Tue Apr 09 2024 11:15 am

    Re: A couple of questions
    By: Digital Man to Nightfox on Tue Apr 09 2024 10:53 am

    No, it is not your module's responsibility to update bbs.new_file_time.

    With ddfilelister set up as a loadable module, it seems bbs.new_file_time isn't being updated when I do a new file scan. As a test, I tried setting my new file scan pointer back to January 1, 2024 (to make sure it was at an earlier time), and did a couple of new file scans in my current directory. ddfilelister prints bbs.new_file_time, and both times, it showed the January 1, 2024 date I had set and listed the same files.

    That sounds like correct behavior to me. The new file date/time is set during logon (by sbbs) only. The user normally has the option to adjust it (the &P command in the default shell).

    i.e. in Synchronet (like WWIV before it), if you perform successive "new file scans" during the same "call" (logon), you'll see the same new files (unless any new files were uploaded during the call, and then you'd see them too). Synchronet has always worked this way:
    https://synchro.net/docs/user.html#NewFileScan
    --
    digital man (rob)

    This Is Spinal Tap quote #38:
    Artie Fufkin: I'm not asking, I'm telling with this. Kick my ass.
    Norco, CA WX: 74.4°F, 17.0% humidity, 3 mph E wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Nightfox on Tue Apr 9 12:19:14 2024
    Re: A couple of questions
    By: Digital Man to Nightfox on Tue Apr 09 2024 11:53 am

    i.e. in Synchronet (like WWIV before it), if you perform successive "new file scans" during the same "call" (logon), you'll see the same new files (unless any new files were uploaded during the call, and then you'd see them too). Synchronet has always worked this way: https://synchro.net/docs/user.html#NewFileScan

    Correction to that document though:
    "New File Scan (N)
    N from the File Transfer prompt lists all new files uploaded since your last logon."

    The "since your last logon" part was actually changed to "since your last scan during your last logon" at some point in SBBS v2.

    Synchronet, internally, updates a value (sbbs_t::last_ns_time which is exposed in JS as bbs.last_new_file_time) every time the user scans for new files. When the user logs-off, that value is stored in the user's "last new file scan" field (in JS, that's user.new_file_time). When the user logs back on, the sbbs_t::ns_time (in JS, bbs.new_file_time) is set to the user.new_file_time, but also may be adjusted by the user while online, and that value (bbs.new_file_time) is what's used as the comparison date/time stamp to determine what files are "new".

    If you're writing your own "new file scan" mod, your mod would need to update the bbs.last_new_file_time value to the current date/time every time a user scans for new files. The storing of the last_new_file_time to the user's 'new_file_time' field/property is handled automatically by SBBS upon log-off.
    --
    digital man (rob)

    Breaking Bad quote #28:
    Gomey, got beat your pinata. - Hank Schrader
    Norco, CA WX: 76.0°F, 16.0% humidity, 7 mph WNW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to apam on Tue Apr 9 12:54:18 2024
    Re: A couple of questions
    By: apam to All on Tue Apr 09 2024 12:41 pm

    1) How long do files stay "new"?

    I'm doing a new scan each day since i started and it appears to show my all the files in my file base each time.

    I made a fix to DDFileLister so that it will do the new file scan when used as a loadable module (it was just listing files). You can update when my fix gets merged into the git repository. And as Digital Man said, new files will no longer be "new" after you log off.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com