【8.3.4】【file】更新一个获取本地文件路径的方法

master
stylefeng 2025-04-11 13:55:09 +08:00
parent d569c80095
commit 86e20a8455
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package cn.stylefeng.roses.kernel.file.api.util;
import cn.hutool.system.SystemUtil;
import cn.stylefeng.roses.kernel.file.api.expander.FileConfigExpander;
/**
*
* <p>
*
*
* @author fengshuonan
* @since 2025/4/11 13:54
*/
public class LocalFilePathUtil {
/**
*
*
* @author fengshuonan
* @since 2025/4/11 13:54
*/
public static String getCurrentSavePath() {
if (SystemUtil.getOsInfo().isWindows()) {
return FileConfigExpander.getLocalFileSavePathWindows();
} else {
return FileConfigExpander.getLocalFileSavePathLinux();
}
}
}