code: private static void mkdir(@NonNull final File directory, final boolean createParents)
              throws IOException {
          Condition.INSTANCE.ensureNotNull(directory, "The directory may not be null");
          boolean result = createParents ? directory.mkdirs() : directory.mkdir();
  
          if (!result && !directory.exists()) {
              throw new IOException("Failed to create directory \"" + directory + "\"");
          }
      }
docs: Creates a specific directory, if it does not already exist.
  
  @param directory
  The directory, which should be created, as an instance of the class {@link File}. The
  directory may not be null
  @param createParents
  True, if the parent directories should also be created, if necessary, false
  otherwise
  @throws IOException
  The exception, which is thrown, if an error occurred while creating the directory