U.java
413 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.cq.upgrades.backup.impl;
public class U {
static String getParentPath(String path, int levels) {
int pos;
String result = path;
if (levels > 0 && (pos = path.lastIndexOf("/")) >= 0) {
result = path.substring(0, pos);
result = U.getParentPath(result, levels - 1);
}
return result;
}
}