Can i rely on the File.lastModified() to detect file modification??
Despite the Security Manager, can i detect a file modification just via its last modification time WITHOUT bothering walking thru every byte of that file?
The modification time is the ret value of File.lastModified().
The detection don't need to be theoretically accurate. If the possible failure rate is below 0.00001%, the approach can be considered safe and successful.
If this holds true, the file change detection speed can be boosted at a great level.