How do I programmatically change file permissions?

前端 未结 12 1175
深忆病人
深忆病人 2020-11-22 04:55

In Java, I\'m dynamically creating a set of files and I\'d like to change the file permissions on these files on a linux/unix file system. I\'d like to be able to execute t

12条回答
  •  不知归路
    2020-11-22 05:53

    You can use the methods of the File class: http://docs.oracle.com/javase/7/docs/api/java/io/File.html

提交回复
热议问题