It's probably a very rare situation but maybe should be hardcoded for MacOS?
…And Justice for All (1979)
In system.properties I had set
Code: Select all
unixfs=true
Code: Select all
unixfs=true
Code: Select all
n.replace('...', '…')
LinkI found a very similar character to a colon, "꞉" it is a unicode character called a Modifier Letter Colon. This has no space like the fullwidth colon and is pretty much exactly the same as a regular colon but the symbol works. You can either copy and paste it from above or you can use the code point, U+A789
Code: Select all
{n.colon(' - ')}
Code: Select all
{':'.replace(':','\uA789')}
Code: Select all
{':abc'.replace(':','\u02D0')}
Code: Select all
{'abc-abc'.replace('-','\u2012')}
Any sequence of characters is Unix-compatible. There is no such thing as a Unix-incompatible file path.
That just proofs that it's not an incompatible character in the first place. The . dot character is entirely legal as far as the operating system and file system are concerned.
We want consistent behaviour on all operating systems. Additionally, running FileBot on a Linux machine (e.g. NAS) and then accessing the files from a Windows machine via SMB is an extremely common use case.
Replacing . : / ? etc with similar looking Unicode code points is generally a bad idea. Perhaps it'll work well for you and your specific requirements though.
Code: Select all
n.replace(':','∶')