@@ -295,6 +295,9 @@ public class FileUtils {
}
public static void writeFile(String filePath,String str){
+ if(!new File(filePath).getParentFile().exists()){
+ new File(filePath).getParentFile().mkdirs();
+ }
FileUtil.writeString(str,filePath,StandardCharsets.UTF_8);
@@ -3,7 +3,8 @@ package com.fdkankan.fyun.constant;
public enum FYunTypeEnum {
OSS("oss", "阿里云"),
AWS("aws", "亚马逊"),
- LOCAL("local", "本地");
+ LOCAL("local", "本地"),
+ HTTPS("https", "通过https请求文件");
private String code;
private String message;