NIO 2 File API

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Subjects

Recipes

Create one directory:

Path parent = ...;
Path dir = Files.createDirectory(Paths.get(parent.toString(), "my-dir"));

Create a directory hierarchy: