From 767195c40db841090d94564eeba1c21ead3b93b3 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 12 Sep 2023 13:06:27 +0900 Subject: [PATCH] no message --- src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java | 2 +- 1 file changed, 1 insertion(+), 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 d932e0b5..6a0bf3f2 100644 --- a/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java +++ b/src/main/java/cokr/xit/fims/cmmn/DirectoryStructureToJson.java @@ -8,7 +8,7 @@ import java.util.List; public class DirectoryStructureToJson { public static Node getNode(File fileNode) throws IOException{ - if(fileNode.getCanonicalFile().isDirectory()){ + if(fileNode.getAbsoluteFile().isDirectory()){ return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"directory", getDirList(fileNode)); }else{ return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"file",null);