Open Mycohl opened 1 year ago
I don't think it's possible to upload such files, as PTP does not say anything about object names (from PTP perspective they are not files, but rather just arbitrary names), but I double check the spec. And also investigate why UI freezes. :grimacing: Nice find, thanks!
Found this https://stackoverflow.com/questions/2679699/what-characters-allowed-in-file-names-on-android
I wonder what's the best behaviour for those. I don't want to replace with something static, like space, maybe u<utf16 in hex>
or x<ascii code in hex>
would do? for instance ?
would be x3f
Steps to repro:
Result: Sometimes file silently fails to copy. Sometimes UI hangs, especially when copying multiple files.
Expected behavior: Files with ?, |, *, or " in the name will upload to device just like every other file
(To be fair, my distro's version of gvfs-mtp also appears to have this bug.)