This is a slight tweak of @Caij's code that parses the code into a spec-compliant URI. Uri.path still behaves according to the URI spec (i.e. always uses /) so we introduce filePath, which formats the URI according to the file system's native separator.
Fixes: https://github.com/coil-kt/coil/issues/2014
This is a slight tweak of @Caij's code that parses the code into a spec-compliant URI.
Uri.path
still behaves according to the URI spec (i.e. always uses/
) so we introducefilePath
, which formats the URI according to the file system's native separator.