Re: FileBase - Add to batch downloads?ã By: Nightfox to Digital Man on Wed Jan 26 2022 09:31 amãã > Hi DM,ã >ã > Synchronet's JS object model has had bbs.batch_add_list() for a while now.ã > With each file in the list, it has to search the whole file database to seeã > if and where the file exists in the filebases.ã >ã > Now that there is a FileBase class, I'm wondering if it would make sense forã > the FileBase class to have a similar batch_add function, for files justã > within that filebase? I've been working on a lightbar file lister, and ifã > the user wants to add one of the files in that filebase to their batchã > download queue, I was thinking it might make sense for the FileBase class toã > have its own batch_add function, so that Synchronet wouldn't have to searchã > through all of the filebases for that file.ã >ã > If there already is such a function in the FileBase class, I'm not seeing itã > in the current documentation.. Maybe I missed it?ã >
http://www.synchro.net/docs/jsobjs.html#FileBase_classããNo, there isn't a per-base "add to batch download queue" method (yes, I could add one pretty easily). However, the batch lists are now just .ini files (for details, see
https://wiki.synchro.net/history:newfilebase#batches), so adding/removing files to the queue from a JS module should be pretty trivial. I'm pretty sure you know the File class has methods for dealing with .ini files.ã-- ã digital man (rob)ããSynchronet "Real Fact" #22:ãThe second ever Synchronet BBS was the Mid-Nite Hacker BBS (sysop: The Zapper)ãNorco, CA WX: 69.7øF, 16.0% humidity, 3 mph NNW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã