Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
module:addfiles [2021/04/04 04:34] – created digital manmodule:addfiles [2021/04/18 18:38] – [Invoke] use -help in example digital man
Line 1: Line 1:
 ====== Add Files ====== ====== Add Files ======
-New for Synchronet v3.19, this JavaScript utility script replaces the functionality of the old ADDFILES program.+New for Synchronet v3.19, this JavaScript utility script replaces the functionality of the old [[util:ADDFILES]] program.
  
 This script can import files into one or more filebases either using input filename/description lists (e.g. ''FILES.BBS'') or by just searching for files in the directory's storage path and using any descriptions embedded in each file's archive (e.g. ''FILE_ID.DIZ''). This script can import files into one or more filebases either using input filename/description lists (e.g. ''FILES.BBS'') or by just searching for files in the directory's storage path and using any descriptions embedded in each file's archive (e.g. ''FILE_ID.DIZ'').
 +
 +If you just want to add a single file from the command-line, then you'll probably want to use ''[[postfile]].js'' instead.
  
 ===== Invoke ====== ===== Invoke ======
 Run with [[util:JSexec]] Run with [[util:JSexec]]
-  jsexec addfiles.js+  jsexec addfiles -help
  
 <file> <file>
 usage: [-options] [dir-code] [listfile] usage: [-options] [dir-code] [listfile]
 options: options:
--all            add files in all libraries/directories (implies -auto) +  -all            add files in all libraries/directories (implies -auto) 
--lib=<name>     add files in all directories of specified library (implies -auto) +  -lib=<name>     add files in all directories of specified library (implies -auto) 
--from=<name>    specify uploader's user name (may require quotes) +  -from=<name>    specify uploader's user name (may require quotes) 
--ex=<filename>  add to excluded filename list +  -ex=<filename>  add to excluded filename list 
-                (default: FILES.BBS,FILE_ID.DIZ,DESCRIPT.ION,SFFILES.BBS) +                  (default: FILES.BBS,FILE_ID.DIZ,DESCRIPT.ION,SFFILES.BBS) 
--diz            always extract/use description in archive +  -diz            always extract/use description in archive 
--update         update existing file entries (default is to skip them) +  -update         update existing file entries (default is to skip them) 
--date[=fmt]     include today's date in description +  -date[=fmt]     include today's date in description 
--fdate[=fmt]    include file's date in description +  -fdate[=fmt]    include file's date in description 
--adate[=fmt]    include newest archived file date in description +  -adate[=fmt]    include newest archived file date in description 
-                (fmt = optional strftime date/time format string) +                  (fmt = optional strftime date/time format string) 
--v              increase verbosity of output +  -delete         delete list after import 
--debug          enable debug output+  -v              increase verbosity of output 
 +  -debug          enable debug output
 </file> </file>
  
 If no options or directories are specified, the sysop will be prompted for a directory to add files to. If no options or directories are specified, the sysop will be prompted for a directory to add files to.
 +
 +==== Examples ====
 +
 +* To search for files and import them in all directories:
 +  jsexec addfiles -all
 +  
 +* To search for a ''FILES.BBS'' list file and import them in all directories:
 +  jsexec addfiles -all FILES.BBS
 +  
 +* To search for a ''FILES.BBS'' list file and import them in all directories of the "main" library:
 +  jsexec addfiles -lib=main FILES.BBS
 +  
  
 ===== See Also ===== ===== See Also =====