Java IO: Creating and Traversing Files And Directories
You can view the sample code associated with this post on Github
Using the static methods in the Files
class, a member of the java.nio.file
package, we can manipulate the file system reasonably easily.