Class DirectoryCreator

Object
DirectoryCreator

public class DirectoryCreator extends Object
Creates necessary directories on a file-system to make a path valid.
Author:
Owen Feehan
  • Method Details

    • createNecessaryDirectories

      public static void createNecessaryDirectories(Path pathToFile) throws IOException
      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.