diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerClient.java b/other/java/client/src/main/java/seaweedfs/client/FilerClient.java index ff84b053f..3786e069c 100644 --- a/other/java/client/src/main/java/seaweedfs/client/FilerClient.java +++ b/other/java/client/src/main/java/seaweedfs/client/FilerClient.java @@ -38,7 +38,7 @@ public class FilerClient { String parent = pathObject.getParent().toString(); String name = pathObject.getFileName().toString(); - if ("/".equals(parent)) { + if ("/".equals(path)) { return true; }