The following static methods return a
boolean value to check a property of a path:
size method returns the number of bytes in a file.
long fileSize = Files.size(path);
getOwner method returns the owner of the file, as an instance of
All file systems report a set of basic attributes, encapsulated by the
BasicFileAttributes interface, which partially overlaps with that information. The basic file attributes are
• The times at which the file was created, last accessed, and last modified, as instances of the class
• Whether the file is ...