@Override public long lastModified() { return base.lastModified(); }
/** * Get the last modified date of a file. * This method is similar to Java 7 * <code>java.nio.file.attribute.Attributes. * readBasicFileAttributes(file).lastModified().toMillis()</code> * * @param fileName the file name * @return the last modified date */ public static long lastModified(String fileName) { return FilePath.get(fileName).lastModified(); }
@Override public long lastModified() { long lastModified = 0; for (int i = 0;; i++) { FilePath f = getBase(i); if (f.exists()) { long l = f.lastModified(); lastModified = Math.max(lastModified, l); } else { break; } } return lastModified; }