src/main/java/edu/iselab/gitcloner/util/FileUtils.java
public static void createFolderIfNotExists(Path folder) {

        checkNotNull(folder, "path should not be null");

        if (!Files.exists(folder)) {

            try {
                Files.createDirectories(folder);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            }
        }
    }
/**
     * Create a empty folder if the provided path does not exist
     * 
     * @param folder {@code Path} to be created
     * @throws NullPointerException if {@code folder} is null
     */
Create a empty folder if the provided path does not exist

@param folder  Path to be created
@throws NullPointerException if  folder is null
Create a empty folder if the provided path does not exist @param folder Path to be created @throws NullPointerException if folder is null
public static void createFolderIfNotExists(Path folder) {
        checkNotNull(folder, "path should not be null");
        if (!Files.exists(folder)) {
            try {
                Files.createDirectories(folder);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            }
        }
    }
public static void createFolderIfNotExists ( Path folder ) { checkNotNull ( folder , "path should not be null" ) ; if ( ! Files . exists ( folder ) ) { try { Files . createDirectories ( folder ) ; } catch ( IOException ex ) { throw new RuntimeException ( ex ) ; } } }
Create a empty folder if the provided path does not exist
Create a empty folder if the provided path does not exist