private String fixPath(String path) {
        if (!path.isEmpty()) {
            if (!path.endsWith("/"))
                return path + '/';
            else
                return path;
        } else
            return path;
    }
private String fixPath(String path) {
        if (!path.isEmpty()) {
            if (!path.endsWith("/"))
                return path + '/';
            else
                return path;
        } else
            return path;
    }
private String fixPath ( String path ) { if ( ! path . isEmpty ( ) ) { if ( ! path . endsWith ( "/" ) ) return path + ' ' ; else return path ; } else return path ; }
Helps to fix path

@param path to fix
@return
Helps to fix path