创建多级目录文件

    科技2023-12-28  97

    /**

    创建多级目录文件@param path 文件路径@throws IOException */ private void createFile(String path) throws IOException { if (StringUtils.isNotEmpty(path)) { File file = new File(path); if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } file.createNewFile(); } }
    Processed: 0.031, SQL: 8