mirror of https://gitee.com/stylefeng/roses
【8.3.4】【file】增加一个获取指定文件路径的方法
parent
86e20a8455
commit
f5619c3841
|
@ -3,6 +3,8 @@ package cn.stylefeng.roses.kernel.file.api.util;
|
||||||
import cn.hutool.system.SystemUtil;
|
import cn.hutool.system.SystemUtil;
|
||||||
import cn.stylefeng.roses.kernel.file.api.expander.FileConfigExpander;
|
import cn.stylefeng.roses.kernel.file.api.expander.FileConfigExpander;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件路径获取
|
* 文件路径获取
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -27,4 +29,14 @@ public class LocalFilePathUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取指定bucket下,指定文件的路径
|
||||||
|
*
|
||||||
|
* @author fengshuonan
|
||||||
|
* @since 2025/4/11 13:57
|
||||||
|
*/
|
||||||
|
public static String getObjectPath(String bucket, String objectName) {
|
||||||
|
return LocalFilePathUtil.getCurrentSavePath() + File.separator + bucket + File.separator + objectName;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue