publish 0.0.9
This commit is contained in:
@@ -37,6 +37,7 @@ public class FileUploadPath {
|
||||
}
|
||||
pathBean.setHttpPath(tempPath);
|
||||
pathBean.setAbsolutePath(String.format("%s/static%s", System.getProperty("user.dir"), tempPath));
|
||||
FileUtil.mkParentDirs(pathBean.getAbsolutePath());
|
||||
|
||||
return pathBean;
|
||||
}
|
||||
@@ -52,6 +53,16 @@ public class FileUploadPath {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 随机生成一个文件路径
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static FileUploadPath random(String fileExt) {
|
||||
return get(IdUtil.simpleUUID() + "." + fileExt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取一个目录
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user