FilePicker
FilePicker copied to clipboard
fix: use DirectoryStream to prevent failure on invalid utf-8 filenames
You can create invalid file using touch "$(echo -e '\xEB\xEE\xE2\xE0\xF0\xE8')"
Unfortunately in Lollipop ang higher ART is used, and it can't handle some symbols - https://stackoverflow.com/a/34282026
There is not many options to read directory files, and another option only available on Oreo and higher - use DirectoryStream, which will not throw exception