Directory listing with the NIO.2 API

The NIO.2 (“New Input/Output 2”) is a new API introduced in Java 7 to operate on file systems more efficiently and uniformly. This new API covers many file and directory specific aspects, such as handling attributes and symbolic links. This article talks about one of the simplest aspects, the listing of directory entries using the…