← Docs
kotlin-stdlib / kotlin.io / java.io.File / isRooted

isRooted

JVM
1.0
val File . isRooted : Boolean
(source)

Determines whether this file has a root or it represents a relative path.

Returns true when this file has non-empty root.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .