add rename rules to deal with special characters

Hi all! I’ve just discovered this tool. My needs are the following one:

  • I have a linux pc with a “source” folder I want to keep in sync
  • I also have a pair of android smartphones, where I want to set up a “destination” folder

I have installed both the desktop and mobile applications, and started syncing up, but the transfer is not stopped.

I see that the “ignored” files have “?” and “!” in the filenames, and I think this could be the reason to the stop.

I would like to understand if there is a way to configure syncthing to do some “translations” of the characters.

For example, let’s say that I have a file “hello!.txt” on my linux machine, I would like to add a rule, like <<translate “!” with “_”>>, and have syncthing to create “hello_.txt” and treat it like the synced copy.

Is it possible to do?

1 Like

No, what you want isn’t possible. There’s a work in progress at that could possibly eleviate the issue, but no-one knows when/if it will be merged into Syncthing.

If you want those files to sync right now, you need to rename them on the Linux device. If you only want to hide the errors, you can add them to ignore patterns. The reason why you can’t sync them to Android is that the phones probably use FAT file system that has many limitations on which characters are allowed or not.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.