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);