just in case

This commit is contained in:
Chris Lu committed 2021-09-06 11:39:10 -07:00
1 parent 9fb278c92c
commit 728ed21a80
1 file changed
+3
@@ -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);
}