ServerSync icon indicating copy to clipboard operation
ServerSync copied to clipboard

Redirecting ignores subfolders structure

Open SMN47 opened this issue 8 months ago • 0 comments

Serversync Version: 4.3.0 CLI

Minecraft Version: Fabric 1.20.1

Issue:

I want to sync /config and /mods folders directly, but redirect contents of /saves folder to newly created folder /saves_SMN47, everything in mirror mode.

The code Is use is:

"rules": {
    "directories": [
      {
        "path": "mods",
        "mode": "mirror"
      },
      {
        "path": "config",
        "mode": "mirror"
      },
      {
        "path": "saves",
        "mode": "mirror"
      }
    ],
    "files": {
      "include": [
        "mods/**",
	"config/**",
	"saves/**",
	"options.amecsapi.txt",
	"options.txt"
      ],
      "ignore": [
        "**/serversync-*.jar",
        "**/serversync-*.cfg"
      ],
      "redirect": [
	   { "pattern": "saves/**", "redirectTo": "saves_SMN47" }
        
      ]
    }

Folders that synced directly keeps all the subfolders and teir contents just fine. Redirected folder on client side ignore all subfolders structure.

Expected result:

изображение

Current result:

изображение

SMN47 avatar May 25 '24 12:05 SMN47