/** * Lists the set of matching descendants of this file, in depthwise order. * * @param selector The FileSelector. * @return list of files or null if the base file (this object) do not exist or the {@code selector} is null * @throws FileSystemException if an error occurs. */ public List<FileObject> listFiles(final FileSelector selector) throws FileSystemException { if (!exists() || selector == null) { return null; } final ArrayList<FileObject> list = new ArrayList<>(); this.findFiles(selector, true, list); return list; }
/** * Lists the set of matching descendants of this file, in depthwise order. * * @param selector The FileSelector. * @return list of files or null if the base file (this object) do not exist or the {@code selector} is null * @throws FileSystemException if an error occurs. */ public List<FileObject> listFiles(final FileSelector selector) throws FileSystemException { if (!exists() || selector == null) { return null; } final ArrayList<FileObject> list = new ArrayList<>(); this.findFiles(selector, true, list); return list; }
/** * Lists the set of matching descendants of this file, in depthwise order. * * @param selector The FileSelector. * @return list of files or null if the base file (this object) do not exist or the {@code selector} is null * @throws FileSystemException if an error occurs. */ public List<FileObject> listFiles(final FileSelector selector) throws FileSystemException { if (!exists() || selector == null) { return null; } final ArrayList<FileObject> list = new ArrayList<>(); this.findFiles(selector, true, list); return list; }
/** * Lists the set of matching descendants of this file, in depthwise * order. * * @param selector The FileSelector. * @return list of files or null if the base file (this object) do not exist or the {@code selector} is null * @throws FileSystemException if an error occurs. */ public List<FileObject> listFiles(final FileSelector selector) throws FileSystemException { if (!exists() || selector == null) { return null; } final ArrayList<FileObject> list = new ArrayList<FileObject>(); this.findFiles(selector, true, list); return list; }
findFiles(selector, true, files);
findFiles(selector, true, files);
findFiles(selector, true, files);
findFiles(selector, true, files);