NIO 2 File API: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
Create one directory: | Create one directory: | ||
<syntaxhighlight lang='java'> | <syntaxhighlight lang='java'> | ||
Path parent = ...; | |||
Path dir = Files.createDirectory(Paths.get(parent.toString(), "my-dir")); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 19:32, 19 June 2020
External
Internal
Subjects
Recipes
Create one directory:
Path parent = ...;
Path dir = Files.createDirectory(Paths.get(parent.toString(), "my-dir"));
Create a directory hierarchy: