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 9751e7c commit 9bc5452Copy full SHA for 9bc5452
compiler/src/dotty/tools/io/File.scala
@@ -8,7 +8,7 @@
8
9
package dotty.tools.io
10
11
-import java.io._
+import java.io.{File => JavaIoFile, _}
12
import java.nio.file.{Files, Paths}
13
import java.nio.file.StandardOpenOption._
14
@@ -17,8 +17,8 @@ import scala.io.Codec
17
* ''Note: This library is considered experimental and should not be used unless you know what you are doing.''
18
*/
19
object File {
20
- def pathSeparator: String = File.pathSeparator
21
- def separator: String = File.separator
+ def pathSeparator: String = JavaIoFile.pathSeparator
+ def separator: String = JavaIoFile.separator
22
23
def apply(path: String)(implicit codec: Codec): File = apply(Paths.get(path))
24
def apply(path: JPath)(implicit codec: Codec): File = new File(path)
0 commit comments