It's easy in python, os.chmod("F:\\123", stat.S_IREAD)
But what is the equivalent code in Java?
file.setReadOnly();
and file.setWritable(false);
does not work.
It's easy in python, os.chmod("F:\\123", stat.S_IREAD)
But what is the equivalent code in Java?
file.setReadOnly();
and file.setWritable(false);
does not work.