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.
1 parent 4a96ce7 commit 9bd390fCopy full SHA for 9bd390f
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