Description
Documentation states that it returns true if the file is after cutoff... but the code does opposite!
/** * Returns a filter that returns true if the file was last modified after * the specified cutoff time. */
BUT..the code constructs the following:
public static IOFileFilter ageFileFilter(long cutoff) { return new AgeFileFilter(cutoff); }
And the Javadoc for this AgeFileFilter says...OLDER i.e. before
/** * Constructs a new age file filter for files equal to or older than * a certain cutoff * * @param cutoff the threshold age of the files */
Which is it?!