From a21282e45228972e9c3b01472c8de7fa49ba92fc Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 12 Sep 2023 13:30:07 +0900 Subject: [PATCH] no message --- .../java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java b/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java index 6a0bf3f2..467551fd 100644 --- a/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java +++ b/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java @@ -8,10 +8,10 @@ import java.util.List; public class DirectoryStructureToJson { public static Node getNode(File fileNode) throws IOException{ - if(fileNode.getAbsoluteFile().isDirectory()){ - return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"directory", getDirList(fileNode)); + if(fileNode.isDirectory()){ + return new Node(fileNode.getName(),"directory", getDirList(fileNode)); }else{ - return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"file",null); + return new Node(fileNode.getName(),"file",null); } } @@ -31,7 +31,7 @@ public class DirectoryStructureToJson { public Node() { } - public Node(String text, String location, String type, List children) { + public Node(String text, String type, List children) { this.text = text; this.type = type; this.children = children;