fileAttributesViewOrNull

JVM
JRE7
1.4
@ExperimentalPathApi fun <reified V : FileAttributeView> Path.fileAttributesViewOrNull(
    vararg options: LinkOption
): V?

Returns a file attributes view of a given type V or null 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.

See Also

Files.getFileAttributeView