How to change file resolution and last change in Java?

To my knowledge, the Java File class does not support changing file permissions and the last modified date. Is there a suitable way to do this in a cross-platform style?

+2
source share
1 answer

I look at the documentation for the Java 6 and there is a method setLastModified(), as well as setReadable(...)and setWritable(...)and setExecutable(...)(all in the class java.io.File). So yes, there is a way ...

+9
source

All Articles