mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 16:39:24 +02:00
normalize slashes in custom IO.toURI function. fixes #105.
This commit is contained in:
+1
-1
@@ -617,7 +617,7 @@ object IO
|
||||
(new URI(dirStr)).normalize
|
||||
}
|
||||
/** Converts the given File to a URI. If the File is relative, the URI is relative, unlike File.toURI*/
|
||||
def toURI(f: File): URI = if(f.isAbsolute) f.toURI else new URI(f.getPath)
|
||||
def toURI(f: File): URI = if(f.isAbsolute) f.toURI else new URI(normalizeName(f.getPath))
|
||||
def resolve(base: File, f: File): File =
|
||||
{
|
||||
assertAbsolute(base)
|
||||
|
||||
Reference in New Issue
Block a user