@Override protected String doGetResourceType() { if (file.isFile()) { return FSPath.FILE_TYPE; } else { return FSPath.DIR_TYPE; } }
@Override public boolean hasChildren() { if (file.isFile()) { return false; } try { String[] list = file.list(); return ((list != null) && (list.length > 0)); } catch (IOException e) { return false; } }