public class PathUtils extends Object
| Constructor and Description |
|---|
PathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getParentPath(String path,
String separator)
获取路径的父路径 *
|
static boolean |
isDirecotry(String absolutePath)
通过路径名判断是否为目录
|
static StringBuffer |
joint(String... array)
拼接成1个路径,最后也添加
|
public static String getParentPath(String path, String separator)
/root/dev_workspace/java/1.java==>/root/dev_workspace/java /root/dev_workspace/java ==>/root/dev_workspace
public static StringBuffer joint(String... array)
public static boolean isDirecotry(String absolutePath)
absolutePath - Copyright © 2021. All rights reserved.