fileAttributesView

Platform and version requirements: JVM (1.5), JRE7 (1.5)
fun <reified V : FileAttributeView> Path.fileAttributesView(
    vararg options: LinkOption
): V

Returns a file attributes view of a given type V or throws an UnsupportedOperationException if the requested attribute view type is not available..

The returned view allows to read and optionally to modify attributes of a file.

Parameters

V - the reified type of the desired attribute view, a subtype of FileAttributeView.

See Also

Files.getFileAttributeView

© 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/file-attributes-view.html