This object tracks the last modified time of a file. Later during an invocation of {@link #isModified(File)} the object will return true if thefile may have been modified and should be re-read from disk.
A snapshot does not "live update" when the underlying filesystem changes. Callers must poll for updates by periodically invoking {@link #isModified(File)}.
To work around the "racy git" problem (where a file may be modified multiple times within the granularity of the filesystem modification clock) this class may return true from isModified(File) if the last modification time of the file is less than 3 seconds ago.
|
|
|
|
|
|
|
|
|
|
|
|