Use Files.size(Path) to get the size of a file.
For the size of a directory (meaning the size of all files contained in it), you still need to recurse manually, as far as I know.
Use Files.size(Path) to get the size of a file.
For the size of a directory (meaning the size of all files contained in it), you still need to recurse manually, as far as I know.