pkolaczk / fclones

Efficient Duplicate File Finder
MIT License
1.91k stars 71 forks source link

Fix handling of non-unicode and control chars in paths #107

Closed pkolaczk closed 2 years ago

pkolaczk commented 2 years ago

Paths stored in reports are now in STFU-8 format, which escapes non-UTF8, special and control characters, so that text files produced by fclones are always valid UTF-8. Additionally, newlines won't mess up the report file format.

A side effect of this change is that on Windows, the backslash character ('\') used as a directory delimiter is encoded as a double backslash '\'.

Fixes #102