Class DirectoryCreator
Object
DirectoryCreator
Creates necessary directories on a file-system to make a path valid.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createNecessaryDirectories
(Path pathToFile) Creates necessary directories to make a path to a file valid.
-
Method Details
-
createNecessaryDirectories
Creates necessary directories to make a path to a file valid.- Parameters:
pathToFile
- the path to a file. Do not pass a path to a directory.- Throws:
IOException
- if any necessary subdirectories failed to be created on the file-system.
-