Now that you know how to point to a file or directory using the
Path class, you are ready to learn how to accomplish the most common tasks for managing files and directories, such as create, read, write, move, delete, and so on. NIO.2 comes with a set of brand new methods to accomplish these tasks, most of which are found in the
The chapter starts by exploring some methods dedicated to checking if a
Path is readable, writable, executable, regular, or hidden. These checks enable you to determine what kind of file or directory you are dealing with before you apply operations such ...