The Supersede utility supports folder specific configuration in .supersede-config
files.
These files can be placed in any folder to add or override supersede configuration for files in that folder or any sub-folder.
Configuration files use the JSON format.
Note |
---|
CautionFolder specific Since folder specific You cannot simply rename a |
Combined configuration
The utility will search up the folder hierarchy and combine all of the relevant configuration files for each file it processes.
This allows you to specify some global default behaviour and rules in the Supersede.json
application configuration file, and then in a folder specific .supersede-config
file you can simply add or override the specific parts that are different for that folder.
For example, consider the following global Supersede.json
configuration:
Code Block | ||
---|---|---|
| ||
{
"Supersede": {
"Copy": {
"Enabled": true,
"Path": "..\\Current"
}
}
} |
This configures the default copy behaviour to copy files to a 📁Current
folder, relative to the file matched by a given rule.
We could use a folder specific .supersede-config
file to modify this behaviour:
Code Block | ||
---|---|---|
| ||
{
"Copy": {
"Path": "..\\Current-Files"
}
} |
This would override the default path configured at higher levels, changing the 📁Current
folder to 📁Current-Files
, relative to the matched file.