isHidden

Platform and version requirements: JVM (1.5), JRE7 (1.5)
fun Path.isHidden(): Boolean

Checks if the file located by this path is considered hidden.

This check is dependant on the current filesystem. For example, on UNIX-like operating systems, a path is considered hidden if its name begins with a dot. On Windows, file attributes are checked.

See Also

Files.isHidden

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io.path/java.nio.file.-path/is-hidden.html