public static boolean createDirectory(File dir){
        try{
            dir.mkdirs();
        }catch (Throwable t){
            return false;
        }
        return true;
    }
referer https://github.com/alibaba/arthas/blob/master/common/src/main/java/com/taobao/arthas/common/FileUtils.java
cop/src/main/java/code/landgrey/copagent/utils/PathUtils.java