fun <ERROR CLASS><File>.hasPath(expected: String): Unit
Platform and version requirements: JVM
Asserts the file has the expected path.