superzanti / ServerSync

Sync files between client and server for Minecraft Forge
GNU General Public License v3.0
163 stars 26 forks source link

Force replacement mode #297

Closed dd880602 closed 2 years ago

dd880602 commented 2 years ago

How should I force the file to be replaced? options.txt optionsof.txt optionsshaders.txt

rheimus commented 2 years ago

Not entirely sure what you are trying to achieve?

Assuming the files exist in a folder called 'stuff' you would add a managed directory for 'stuff' and add a file entry for the files you want to be synchronized.

{
  "rules": {
    "directories": [
      {
        "path": "stuff",
        "mode": "mirror"
      }
    ],
    "files": {
      "include": [
        "stuff/options.txt"
      ]
    }
  }
}