BasicFileAttributes basicAttributes = Files.readAttributes(filePathRef, BasicFileAttributes.class);
System.out.println("File infos");
System.out.printf(">>> Creation Time: %s\n", basicAttributes.creationTime());
System.out.printf(">>> Directory? %s\n", basicAttributes.isDirectory());
System.out.printf(">>> File? %s\n", basicAttributes.isRegularFile());
System.out.printf(">>> Last accessed on: %s\n", basicAttributes.lastAccessTime());
System.out.printf(">>> Last modified on: %s\n", basicAttributes.lastModifiedTime());
System.out.printf(">>> File size (bytes): %s\n", basicAttributes.size());
System.out.printf(">>> File key : %s\n", basicAttributes.fileKey());
File tempDir = new File(System.getProperty("java.io.tmpdir"));
Path tempDirPathRef = Paths.get(tempDir.toURI());