File explorer copies files without changing their "last modified" property, File.Copy does change it.
Is there a way to copy a file without modifying its "last modified" property ?
I've found this link showing how you can set this property in java http://examples.javacodegeeks.com/core-java/io/file/change-file-last-modified-date-in-java-example/
As a workaround I could copy the file and then set the time to the original time. Can someone show me how to use it with javaobject ?
Is there a way to copy a file without modifying its "last modified" property ?
I've found this link showing how you can set this property in java http://examples.javacodegeeks.com/core-java/io/file/change-file-last-modified-date-in-java-example/
As a workaround I could copy the file and then set the time to the original time. Can someone show me how to use it with javaobject ?
Last edited: