Java Create Directory mkdir(String folder)

Here you can find the source of mkdir(String folder)

Description

mkdir

License

Apache License

Declaration

public static void mkdir(String folder) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.*;

public class Main {

    public static void mkdir(String folder) {
        File file = new File(folder);
        if (!file.exists()) {
            file.mkdir();/*from   w w w.ja  v  a 2s  .  c om*/
            System.out.println(file);
            System.out.println(file.getAbsoluteFile());
            System.out.println(file.getAbsolutePath());
        }
    }
}

Related

  1. mkDir(String DirectoryName)
  2. mkdir(String directoryName)
  3. mkdir(String dirname)
  4. mkdir(String dirPath, boolean del)
  5. mkdir(String dname)
  6. mkdir(String folderName, long lastModifiedDate)
  7. mkdir(String folderpath)
  8. mkDir(String fullPath, String directoryPath)
  9. mkdir(String mkdirName)