I do consider this proposal useful and helpful for some cloud services (e.g. OneDrive) with strict file name length limitation, especially when file name encryption is used. Is @Max-Sum still interested in this project? I noticed that many work is done in Commits · Max-Sum/rclone · GitHub, (I haven't try that yet), but there is no PR created.
This proposal is only useful on providers with strict name limits and on providers which limit the names in unicode characters or UTF-16 groups, not in UTF-8 encoding.
I just tested this with onedrive
// onedrive
maxFileLength = 256 // for 1 byte unicode characters
maxFileLength = 256 // for 2 byte unicode characters
maxFileLength = 202 // for 3 byte unicode characters
maxFileLength = 128 // for 4 byte unicode characters
So onedrive seems to use 2 byte encodings internally so would benefit from base32768 encoding.
Wheras for google drive I get
// drive
maxFileLength = 7754 // for 1 byte unicode characters
maxFileLength = 1292 // for 2 byte unicode characters
maxFileLength = 861 // for 3 byte unicode characters
maxFileLength = 646 // for 4 byte unicode characters
rclone test -v info --check-length remote:path-to-test-directory
It would be interesting to run on Windows against a windows file system too - on Linux I get
// local
maxFileLength = 255 // for 1 byte unicode characters
maxFileLength = 127 // for 2 byte unicode characters
maxFileLength = 85 // for 3 byte unicode characters
maxFileLength = 63 // for 4 byte unicode characters
Which is what I'd expect but Windows is different, showing that internally things are encoded as UTF-16 maybe? Maybe I picked the wrong example character for the 3 byte UTF-8 sequence as it is probably only a 1 UTF-16 symbol.
// local
maxFileLength = 255 // for 1 byte unicode characters
maxFileLength = 255 // for 2 byte unicode characters
maxFileLength = 255 // for 3 byte unicode characters
maxFileLength = 127 // for 4 byte unicode characters
Yes that's the case. This proposal seems to be a workaround specifically designed for OneDrive, but I 'm especially interested in it because I' m planning use the OneDrive backend and the encryption feature> <.