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 [2024/12/04 22:57] – [Invoke] Clarify that -all, -lib, and dir-code are mutually exclusive. digital manmodule:addfiles [2024/12/05 01:11] (current) – Update the help output to match current script digital man
Line 11: Line 11:
  
 <file> <file>
-usage: [-options] [dir-code] [listfile] [desc-off]+usage: [dir-spec] [-options] [listfile] [desc-off] 
 + 
 +dir-spec: 
 +  -all              Add files in all directories of all libraries (implies -auto) 
 +  -lib=<name>     * Add files in all directories of specified library (implies -auto) 
 +  -dir=<code>,... * Add files in multiple specified directories 
 +   dir-code         Internal code of (one and only) directory to add files to 
 +                  * indicates parameters that can be combined and/or specified multiple times 
 +   Note: If no directories are specified, one will be prompted for. 
 options: options:
-  -all            add files in all libraries/directories (implies -auto+  -auto             Add files only to directories that have Auto-ADDFILES enabled (in SCFG) 
-  -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 +  -file=<name>      Specify files to add (wildcards supported, default: *) 
-  -from=<name>    specify uploader's user name (may require quotes) +  -ex=<filename>    Add to excluded filename list 
-  -file=<name>    specify files to add (wildcards supported, default: *) +                    (default: FILES.BBS,DESCRIPT.ION,00_INDEX.TXT,SFFILES.BBS,FILE_ID.DIZ
-  -ex=<filename>  add to excluded filename list +  -diz              Always extract/use description in archive (e.g. FILE_ID.DIZ) 
-                  (default: FILES.BBS,FILE_ID.DIZ,DESCRIPT.ION,SFFILES.BBS) +  -update           Update existing file entries (default is to skip them) 
-  -diz            always extract/use description in archive +  -readd            Re-add existing file entries (so they appear as newly-uploaded 
-  -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) +  -delete           Delete list after import 
-  -delete         delete list after import +  -v                Increase verbosity of output 
-  -v              increase verbosity of output +  -debug            Enable debug output 
-  -debug          enable debug output + 
-optional: +optional listfile parameters
-  dir-code:       File directory internal code +   listfile         Name of listfile to import (e.g. FILES.BBS) 
-  listfile:       Name of listfile (e.g. FILES.BBS) +   desc-off         Description character-offset in listfile (e.g. 40)
-  desc-off:       Description character offset (number)+
 </file> </file>
  
-If no options or directories are specified, the sysop will be prompted for a directory to add files to. 
- 
-**Note**:\\ 
-The ''-all'', ''-lib'' options and the ''dir-code'' parameter are mutually exclusive: use **only one**, if any, of them. 
 ==== Examples ==== ==== Examples ====
  
Line 52: Line 56:
 * To add files/descriptions from a ''FILES.BBS'' list (where file descriptions begin at column 40) for the //graphics// directory: * 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   jsexec addfiles graphics FILES.BBS 40
 +  
 +* To add files to a specific directory (//graphics//) using embedded descriptions (e.g. ''FILE_ID.DIZ'') //without// a list file:
 +  jsexec addfiles graphics -diz
 ===== See Also ===== ===== See Also =====
   * [[:module:|module index]]   * [[:module:|module index]]