/** * Lists the children of the file. */ @Override protected String[] doListChildren() throws Exception { if (file != null) { final FileObject[] children; try { children = file.getChildren(); } // VFS-210 catch (final FileNotFolderException e) { throw new FileNotFolderException(getName(), e); } final String[] childNames = new String[children.length]; for (int i = 0; i < children.length; i++) { childNames[i] = children[i].getName().getBaseName(); } return childNames; } return children.toArray(new String[children.size()]); }
/** * Lists the children of the file. */ @Override protected String[] doListChildren() throws Exception { if (file != null) { final FileObject[] children; try { children = file.getChildren(); } // VFS-210 catch (final FileNotFolderException e) { throw new FileNotFolderException(getName(), e); } final String[] childNames = new String[children.length]; for (int i = 0; i < children.length; i++) { childNames[i] = children[i].getName().getBaseName(); } return childNames; } return children.toArray(new String[children.size()]); }
/** * Lists the children of the file. */ @Override protected String[] doListChildren() throws Exception { if (file != null) { final FileObject[] children; try { children = file.getChildren(); } // VFS-210 catch (final FileNotFolderException e) { throw new FileNotFolderException(getName(), e); } final String[] childNames = new String[children.length]; for (int i = 0; i < children.length; i++) { childNames[i] = children[i].getName().getBaseName(); } return childNames; } return children.toArray(new String[children.size()]); }
/** * Lists the children of the file. */ @Override protected String[] doListChildren() throws Exception { if (file != null) { final FileObject[] children; try { children = file.getChildren(); } // VFS-210 catch (final FileNotFolderException e) { throw new FileNotFolderException(getName(), e); } final String[] childNames = new String[children.length]; for (int i = 0; i < children.length; i++) { childNames[i] = children[i].getName().getBaseName(); } return childNames; } else { return children.toArray(new String[children.size()]); } }