public class DirectoryCreator extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createNecessaryDirectories(Path pathToFile)
Creates necessary directories to make a path to a file valid.
|
public static void createNecessaryDirectories(Path pathToFile) throws IOException
pathToFile
- the path to a file. Do not pass a path to a directory.IOException
- if any necessary subdirectories failed to be created on the file-system.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.