just in case

This commit is contained in:
Chris Lu 2021-09-06 11:39:10 -07:00
parent 9fb278c92c
commit 728ed21a80

View file

@ -29,6 +29,9 @@ public class SeaweedUtil {
}
public static String[] toDirAndName(String fullpath) {
if (fullpath == null) {
return new String[]{"/", ""};
}
if (fullpath.endsWith("/")) {
fullpath = fullpath.substring(0, fullpath.length() - 1);
}