panic when copying file with non-utf8 filename
Created by: bungcip
how to reproduce
- the simple way to create non-utf8 is by using python
python
>>> open('hello\xff.txt','w')
<open file 'hello\xff.txt', mode 'w' at 0x7f98ae0a5540>
- then copy the file to redoxfs mounted folder
cp hello▒.txt ~/repo/redoxfs/image
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:329
note: Run with `RUST_BACKTRACE=1` for a backtrace.
expected output well, at least don't panic.
- if we want redoxfs behave like other linux filesystem which just store filename as blob then the operation must be sucess.
- if we want redoxfs to enforce utf8 filename on disk format then the operation must fail with showing useful error message.