Problem Statement
How do you efficiently read basic file attributes (size, times) without opening the file contents?
Explanation
NIO.2 exposes metadata via attribute views like BasicFileAttributes and PosixFileAttributes without reading file payloads, which is lightweight and efficient.