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)
| 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 |
nothing calls this directly
no test coverage detected