just in case
This commit is contained in:
@@ -29,6 +29,9 @@ public class SeaweedUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String[] toDirAndName(String fullpath) {
|
public static String[] toDirAndName(String fullpath) {
|
||||||
|
if (fullpath == null) {
|
||||||
|
return new String[]{"/", ""};
|
||||||
|
}
|
||||||
if (fullpath.endsWith("/")) {
|
if (fullpath.endsWith("/")) {
|
||||||
fullpath = fullpath.substring(0, fullpath.length() - 1);
|
fullpath = fullpath.substring(0, fullpath.length() - 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user