ServerSync
ServerSync copied to clipboard
Redirecting ignores subfolders structure
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: