Skip to content

Commit

Permalink
fix errors in FileHierarchialElement/FileSource
Browse files Browse the repository at this point in the history
  • Loading branch information
justinedelson committed Oct 5, 2017
1 parent ec43976 commit b642a57
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public long getLength() {

@Override
public HierarchialElement getElement() {
return null;
return element;
}
}

Expand Down Expand Up @@ -153,6 +153,10 @@ public String getName() {

@Override
public HierarchialElement getParent() {
File parent = file.getParentFile();
if (parent.equals(baseFolder)) {
return null;
}
return new FileHierarchialElement(file.getParentFile());
}

Expand Down

0 comments on commit b642a57

Please sign in to comment.