You've already forked FrameTour-BE
修复返回path不是相对prefix的
This commit is contained in:
@@ -38,4 +38,14 @@ public class StorageUtil {
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
public static String getRelativePath(String fullPath, String relativeOn) {
|
||||
if (StringUtils.isBlank(relativeOn)) {
|
||||
fullPath = fullPath.replace(relativeOn, "");
|
||||
}
|
||||
if (fullPath.startsWith("/")) {
|
||||
fullPath = fullPath.substring(1);
|
||||
}
|
||||
return fullPath;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user