By using File.setReadOnly()
, I can make the file read-only; however, user can still change this setting by right-clicking the file.
Is there any way to lock this movement?
I've tried both File.setReadable()
and File.setWritable()
, none of them worked.