NIO 2 File API
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:
Path parent = ...;
Path dir = Files.createDirectories(Paths.get(parent.toString(), "dir1/dir2/dir3"));