You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val uri = Uri.parse("file:///some/path")
val converted = uri.toURI
// I expect that uri has the scheme set to file, however, the scheme is not set at all
// Problem
new File(converted) // Throws exception because there is no file scheme
scala version: 2.11
scala-uri version: 0.4.16
The text was updated successfully, but these errors were encountered:
// These withHost are added because Uri.toString() doesn't properly add back in the scheme
val LOCAL_FILE = Uri.parse("file:///some/random/path").withHost("")
val uri = Uri.parse("file:///some/path")
val converted = uri.toURI
// I expect that uri has the scheme set to file, however, the scheme is not set at all
// Problem
new File(converted) // Throws exception because there is no file scheme
scala version: 2.11
scala-uri version: 0.4.16
The text was updated successfully, but these errors were encountered: