====== mods directory ======
The ''mods'' directory is intended to contain MODified-stock or 3rd party (i.e. not from [[:dev:Git]]) JavaScript modules (''.js'' files) or Baja modules (''.bin'' with ''.src'') (or as of Synchronet v3.21, text/menu files) which will not be overwritten during Synchronet updates/upgrades.

If a file exists in both the ''[[dir:exec]]'' directory and the ''mods'' directory, the version in the ''mods'' directory will be loaded and executed rather than the version in the ''exec'' directory.

In Synchronet v3.21+, if a file exists in both the ''[[dir:text]]'' directory and the ''mods/text'' directory, the version in the ''mods/text'' directory will be displayed rather than the version in the ''text'' directory. Same is true of the ''[[dir:text]]/menu'' (and ''mods/text/menu'') directories.

The path to the ''mods'' directory is configured in [[util:SCFG]]->System->Advanced Options.

===== Sub-directories =====

==== load ====

The ''mods/load'' directory is intended to contain MODified stock JavaScript library files from the ''[[dir:exec]]/load'' directory.

==== text ====

The ''mods/text'' directory (and its sub-directories, e.g. ''menu'') is intended to contain MODified stock text/menu files from the ''[[dir:text]]'' directory (and its sub-directories). This feature was added in Synchronet v3.21.
===== See Also =====

  * [[dir:|Directory structure]]
  * ''[[exec]]'' directory
  * ''[[text]]'' directory
  * ''[[config:text_files]]''
  * ''[[custom:menu_files]]''

{{tag>customization text_file menu ansi}}

