no message

main
이범준 1 year ago
parent 26584198af
commit 767195c40d

@ -8,7 +8,7 @@ import java.util.List;
public class DirectoryStructureToJson { public class DirectoryStructureToJson {
public static Node getNode(File fileNode) throws IOException{ 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)); return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"directory", getDirList(fileNode));
}else{ }else{
return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"file",null); return new Node(fileNode.getName(),fileNode.getAbsolutePath(),"file",null);

Loading…
Cancel
Save