mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-05 14:02:00 +02:00
just in case
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user