public static String removePathComponent(String path, int i) {
		if (path.startsWith(PATHSEP))
			i++;
		String[] pathCmpnts = path.split(PATHSEP);
		StringBuilder str = new StringBuilder(PATHSEP);
		for (int t = 0; t < pathCmpnts.length; t++) {
			if (t != i && pathCmpnts[t] != null && pathCmpnts[t].length() > 0) {
				if (!str.toString().endsWith(PATHSEP)) {
					str.append(PATHSEP);
				}
				str.append(pathCmpnts[t]);
			}
		}
		return str.toString();
	}