public String getFullPath if parent null return String format parent g

1
2
3
4
5
6
public String getFullPath() {
if (parent != null) {
return String.format("%s/%s", parent.getFullPath(), _name);
}
return _name.equals("/") ? "" : _name;
}