public boolean hasNext() { File dir = file.getParentFile(); for (File f : dir.listFiles()) if (matchesSequence(f)) return true; return false; }
/** * This method checks if there exists a next file in the sequence. * * @return <code>true</code> if a new file exists, which may indicate that * the current file is finished. */ protected boolean hasNext() { File dir = file.getParentFile(); if (file.isDirectory()) dir = file; for (File f : dir.listFiles()) if (matchesSequence(f) && !f.equals(current)) return true; return false; }
/** * This method checks if there exists a next file in the sequence. * * @return <code>true</code> if a new file exists, which may indicate that * the current file is finished. */ protected boolean hasNext() { File dir = file.getParentFile(); if (file.isDirectory()) dir = file; for (File f : dir.listFiles()) if (matchesSequence(f) && !f.equals(current)) return true; return false; }
if (matchesSequence(f) && !finished.contains(f)) {
if (matchesSequence(f) && !finished.contains(f)) {
File dir = file.getParentFile(); for (File f : dir.listFiles()) { if (matchesSequence(f) && this.startTime <= f.lastModified()) { log.debug( " File {} (last-modified-at {}) is considered a candidate to proceed",