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

Method setLastModified

lib/java/io/File.java:900–909  ·  view source on GitHub ↗

Sets the time this file was last modified, measured in milliseconds since January 1st, 1970, midnight. @param time the last modification time for this file. @return true if the operation is successful, false otherwise. @throws IllegalArgumentException

(long time)

Source from the content-addressed store, hash-verified

898 * access to this file.
899 */
900 public boolean setLastModified(long time) {
901 if (time < 0) {
902 throw new IllegalArgumentException(Messages.getString("luni.B2")); //$NON-NLS-1$
903 }
904// SecurityManager security = System.getSecurityManager();
905// if (security != null) {
906// security.checkWrite(path);
907// }
908 return (setLastModifiedImpl(properPath(true), time));
909 }
910
911 private native boolean setLastModifiedImpl(byte[] path, long time);
912

Callers

nothing calls this directly

Calls 3

getStringMethod · 0.95
setLastModifiedImplMethod · 0.95
properPathMethod · 0.95

Tested by

no test coverage detected