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