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.
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.
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.
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
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 370 |
Nodes: | 16 (2 / 14) |
Uptime: | 124:31:22 |
Calls: | 7,905 |
Calls today: | 1 |
Files: | 12,972 |
Messages: | 5,792,684 |