Beispiel #1
0
 @Override
 protected String doGetResourceType() {
   if (file.isFile()) {
     return FSPath.FILE_TYPE;
   } else {
     return FSPath.DIR_TYPE;
   }
 }
Beispiel #2
0
  @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;
    }
  }