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

Both sides previous revisionPrevious revision
Next revision
Previous revision
module:addfiles [2021/04/04 04:47] – [Add Files] Mention postfile.js digital manmodule:addfiles [2023/03/05 14:18] (current) – [Examples] Add example that includes dir-code, listfile, and desc-off. 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'').
Line 8: Line 8:
 ===== 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] [desc-off]
 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) +  -auto           add files only to directories that have Auto-ADDFILES enabled 
--ex=<filename>  add to excluded filename list +  -from=<name>    specify uploader's user name (may require quotes) 
-                (default: FILES.BBS,FILE_ID.DIZ,DESCRIPT.ION,SFFILES.BBS) +  -file=<name>    specify files to add (wildcards supported, default: *) 
--diz            always extract/use description in archive +  -ex=<filename>  add to excluded filename list 
--update         update existing file entries (default is to skip them) +                  (default: FILES.BBS,FILE_ID.DIZ,DESCRIPT.ION,SFFILES.BBS) 
--date[=fmt]     include today's date in description +  -diz            always extract/use description in archive 
--fdate[=fmt]    include file's date in description +  -update         update existing file entries (default is to skip them) 
--adate[=fmt]    include newest archived file date in description +  -date[=fmt]     include today's date in description 
-                (fmt = optional strftime date/time format string) +  -fdate[=fmt]    include file's date in description 
--v              increase verbosity of output +  -adate[=fmt]    include newest archived file date in description 
--debug          enable debug output+                  (fmt = optional strftime date/time format string) 
 +  -delete         delete list after import 
 +  -v              increase verbosity of output 
 +  -debug          enable debug output 
 +optional: 
 +  dir-code:       File directory internal code 
 +  listfile:       Name of listfile (e.g. FILES.BBS) 
 +  desc-off:       Description character offset (number)
 </file> </file>
  
Line 41: Line 48:
   jsexec addfiles -lib=main FILES.BBS   jsexec addfiles -lib=main FILES.BBS
      
 +* To add files/descriptions from a ''FILES.BBS'' list (where file descriptions begin at column 40) for the //graphics// directory: 
 +  jsexec addfiles graphics FILES.BBS 40
 ===== See Also ===== ===== See Also =====
   * [[:module:|module index]]   * [[:module:|module index]]