mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
commit
c3912edeb5
@ -1383,7 +1383,7 @@ public class FileUtil extends PathUtil {
|
||||
* <ol>
|
||||
* <li>1. 统一用 /</li>
|
||||
* <li>2. 多个 / 转换为一个 /</li>
|
||||
* <li>3. 去除两边空格</li>
|
||||
* <li>3. 去除左边空格</li>
|
||||
* <li>4. .. 和 . 转换为绝对路径,当..多于已有路径时,直接返回根路径</li>
|
||||
* </ol>
|
||||
* <p>
|
||||
@ -1404,7 +1404,7 @@ public class FileUtil extends PathUtil {
|
||||
* "C:\\foo\\..\\bar" =》 "C:/bar"
|
||||
* "C:\\..\\bar" =》 "C:/bar"
|
||||
* "~/foo/../bar/" =》 "~/bar/"
|
||||
* "~/../bar" =》 "bar"
|
||||
* "~/../bar" =》 普通用户运行是'bar的home目录',ROOT用户运行是'/bar'
|
||||
* </pre>
|
||||
*
|
||||
* @param path 原路径
|
||||
|
Loading…
x
Reference in New Issue
Block a user