mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
just in case
This commit is contained in:
parent
9fb278c92c
commit
728ed21a80
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue