@Override public OpenPath getChild(String name) { try { for (OpenPath kid : list()) if (kid.getName().equals(name)) return kid; } catch (IOException e) { } return null; }
@Override public OpenPath getChild(String name) { try { OpenPath[] kids = list(); for (OpenPath kid : kids) if (kid.getName().equals(name)) return kid; } catch (Exception e) { } return null; }
@Override public OpenPath getChild(String name) { try { for (OpenPath kid : list()) if (kid.getName().equals(name)) return kid; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }