From 87a70fdc1961078d701a1d97f5dc5d2368e214c0 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 12 Sep 2023 13:55:42 +0900 Subject: [PATCH] no message --- src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java b/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java index 467551fd..0cdfd47d 100644 --- a/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java +++ b/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java @@ -8,7 +8,8 @@ import java.util.List; public class DirectoryStructureToJson { public static Node getNode(File fileNode) throws IOException{ - if(fileNode.isDirectory()){ + + if(fileNode.isDirectory() || fileNode.getName().equals("files")){ return new Node(fileNode.getName(),"directory", getDirList(fileNode)); }else{ return new Node(fileNode.getName(),"file",null);