code: public static File createDir(String path, boolean isHidden) throws IOException {
      File file = new File(path);
      deleteIfExists(file);
      File newFile = new File(path);
      newFile.mkdir();
      if (OsUtil.isWindows()) {
        Files.setAttribute(newFile.toPath(), "dos:hidden", isHidden);
      }
      return file;
    }
docs: 创建文件夹，如果目标存在则删除