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());
Path p = null;
Iterator<Path> tmpIter = null;
System.out.printf("Files in directory '%s'\n", tempDir.getName());