new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/FileUtils.java
public static void makeDirectories(String namespace,
                                     String pod,
                                     String container,
                                     boolean redirectToStdout,
                                     List<String> directoryToCreate
  ) throws IOException, ApiException, InterruptedException  {
    //Create directories.
    directoryToCreate.forEach(newDir -> {
      String mkCmd = "mkdir -p " + newDir;
      getLogger().info("Newdir to make {0} ", mkCmd);

      try {
        ExecResult execResult = execCommand(namespace,
            pod, container, redirectToStdout,"/bin/sh", "-c", mkCmd);
        getLogger().info("Directory created " + execResult.stdout());
      } catch (Exception ex) {
        throw new RuntimeException(ex);
      }
    });
  }
/**
   * Create a directory in a pod in specified namespace.
   * @param namespace The Kubernetes namespace that the pod is in
   * @param pod The name of the Kubernetes pod where the command is expected to run
   * @param container The container in the Pod where the command is to be run. If no
   *                         container name is provided than the first container in the Pod is used.
   * @param redirectToStdout copy process output to stdout
   * @param directoryToCreate namespace in which the pod exists
   */
Create a directory in a pod in specified namespace.
@param namespace The Kubernetes namespace that the pod is in
@param pod The name of the Kubernetes pod where the command is expected to run
@param container The container in the Pod where the command is to be run. If no
container name is provided than the first container in the Pod is used.
@param redirectToStdout copy process output to stdout
@param directoryToCreate namespace in which the pod exists
Create a directory in a pod in specified namespace . @param namespace The Kubernetes namespace that the pod is in @param pod The name of the Kubernetes pod where the command is expected to run @param container The container in the Pod where the command is to be run . If no container name is provided than the first container in the Pod is used . @param redirectToStdout copy process output to stdout @param directoryToCreate namespace in which the pod exists
public static void makeDirectories(String namespace,
                                     String pod,
                                     String container,
                                     boolean redirectToStdout,
                                     List<String> directoryToCreate
  ) throws IOException, ApiException, InterruptedException  {
    directoryToCreate.forEach(newDir -> {
      String mkCmd = "mkdir -p " + newDir;
      getLogger().info("Newdir to make {0} ", mkCmd);
      try {
        ExecResult execResult = execCommand(namespace,
            pod, container, redirectToStdout,"/bin/sh", "-c", mkCmd);
        getLogger().info("Directory created " + execResult.stdout());
      } catch (Exception ex) {
        throw new RuntimeException(ex);
      }
    });
  }
public static void makeDirectories ( String namespace , String pod , String container , boolean redirectToStdout , List < String > directoryToCreate ) throws IOException , ApiException , InterruptedException { directoryToCreate . forEach ( newDir -> { String mkCmd = "mkdir -p " + newDir ; getLogger ( ) . info ( "Newdir to make {0} " , mkCmd ) ; try { ExecResult execResult = execCommand ( namespace , pod , container , redirectToStdout , "/bin/sh" , "-c" , mkCmd ) ; getLogger ( ) . info ( "Directory created " + execResult . stdout ( ) ) ; } catch ( Exception ex ) { throw new RuntimeException ( ex ) ; } } ) ; }
Create a directory in a pod in specified namespace.
Create a directory in a pod in specified namespace .
//Create directories.