We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a96ce7 + 9bd390f commit 4e9f610Copy full SHA for 4e9f610
compiler/src/dotty/tools/io/Path.scala
@@ -52,7 +52,7 @@ object Path {
52
53
def roots: List[Path] = FileSystems.getDefault.getRootDirectories.iterator().asScala.map(Path.apply).toList
54
55
- def apply(path: String): Path = apply(Paths.get(path))
+ def apply(path: String): Path = apply(new java.io.File(path).toPath)
56
def apply(jpath: JPath): Path = try {
57
if (Files.isRegularFile(jpath)) new File(jpath)
58
else if (Files.isDirectory(jpath)) new Directory(jpath)
0 commit comments