code: private static String getFolderPath(String folderPath) {
          File folder = new File(folderPath);
          if (folder.exists() && folder.isFile()) {
              String tempPath = folder.getParent();
              folder = new File(tempPath);
          }
          if (!folder.exists()) {
              folder.mkdirs();
          }
          return folder.getPath();
      }
docs: 获取文件夹路径，如果不存在则创建
  
  @param folderPath
  @return