Title: Creating and reading directories
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

Creating and reading directories

The following methods, from class java.nio.file.Files, are available for reading and writing directories:

- createDirectory – create a directory.
- createDirectories – create a path of directories.
- newDirectoryStream – get the contents of a directory.
- isDirectory – check if directory exists.

For more information, see:

- Creating and Reading Directories
- Level 1 Study Materials: Unit 2
- Level 1 Study Materials: Unit 3