MCPcopy Create free account
hub / github.com/davidgiven/luje / lastModified

Method lastModified

lib/java/io/File.java:871–882  ·  view source on GitHub ↗

Returns the time when this file was last modified, measured in milliseconds since January 1st, 1970, midnight. @return the time when this file was last modified. @throws SecurityException if a SecurityManager is installed and it denies read access to this file.

()

Source from the content-addressed store, hash-verified

869 * access to this file.
870 */
871 public long lastModified() {
872// SecurityManager security = System.getSecurityManager();
873// if (security != null) {
874// security.checkRead(path);
875// }
876 long result = lastModifiedImpl(properPath(true));
877 /* Temporary code to handle both return cases until natives fixed */
878 if (result == -1 || result == 0) {
879 return 0;
880 }
881 return result;
882 }
883
884 private native long lastModifiedImpl(byte[] filePath);
885

Callers

nothing calls this directly

Calls 2

lastModifiedImplMethod · 0.95
properPathMethod · 0.95

Tested by

no test coverage detected