Example usage for java.nio.file.attribute BasicFileAttributes fileKey

List of usage examples for java.nio.file.attribute BasicFileAttributes fileKey

Introduction

In this page you can find the example usage for java.nio.file.attribute BasicFileAttributes fileKey.

Prototype

Object fileKey();

Source Link

Document

Returns an object that uniquely identifies the given file, or null if a file key is not available.

Usage

From source file:org.sonar.core.util.FileUtilsTest.java

@CheckForNull
private static Object getFileKey(Path path) throws IOException {
    BasicFileAttributes attrs = Files.readAttributes(path, BasicFileAttributes.class);
    return attrs.fileKey();
}