mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
commit
e18555fd47
@ -1423,7 +1423,7 @@ public class FileUtil extends PathUtil {
|
|||||||
|
|
||||||
// 识别home目录形式,并转换为绝对路径
|
// 识别home目录形式,并转换为绝对路径
|
||||||
if (pathToUse.startsWith("~")) {
|
if (pathToUse.startsWith("~")) {
|
||||||
pathToUse = pathToUse.replace("~", getUserHomePath());
|
pathToUse = pathToUse.replaceFirst("~", getUserHomePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 统一使用斜杠
|
// 统一使用斜杠
|
||||||
|
Loading…
x
Reference in New Issue
Block a user