How to prevent TailCharacterConflicts when using Synology Cloud Station

If you have file or folder folder names containing a trailing dot, Synology’s Cloud Station software will change your filenames to include ‘TailCharacterConflict’, and, in my case, sync files wrongly. The same can happen when filenames or directory names have a trailing whitespace character.

You can fix try to fix the results of this ‘glitch’ (Synology calls it a feature and not a bug or glitch) after this has happened, but it’s easier to rename all your files before using Cloud Station.

Using the following terminal commands I was able to recursively remove trailing dots and whitespaces.

Spaces:

find . -exec rename -v ‘s/ *$//’ ‘{}’ \;

Dots:

find . -iname ‘*.’ -exec rename -v ‘s/\.$//’ ‘{}’ \;
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.