public static String getParent(String path) {
        if (Strings.isBlank(path))
            return path;
        int pos = path.replace('\\', '/').lastIndexOf('/');
        if (pos > 0)
            return path.substring(0, pos);
        return "/";
    }
public static String getParent ( String path ) { if ( Strings . isBlank ( path ) ) return path ; int pos = path . replace ( '\\' , '/' ) . lastIndexOf ( '/' ) ; if ( pos > 0 ) return path . substring ( 0 , pos ) ; return "/" ; }
@param path
路径
@return 父路径