To my knowledge, Java’s File class does not support to change the file’s permission and last modified date. Is there any proper way to do this in a cross-platform style?
To my knowledge, Java’s File class does not support to change the file’s permission
Share
I’m looking at the Java 6 documentation, and there is a
setLastModified()method, as well assetReadable(...)andsetWritable(...)andsetExecutable(...)methods (all in thejava.io.Fileclass). So yes, there is a way…