From cab7fc7738d816d1db10245e98785ec8f5d5b05f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 17 Dec 2018 20:37:55 -0800 Subject: [PATCH] fix directory creation fix https://github.com/chrislusf/seaweedfs/issues/794 --- .../java/client/src/main/java/seaweedfs/client/FilerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }