How do I programmatically change file permissions?

前端 未结 12 1242
深忆病人
深忆病人 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:43

    There is an example class on Oracle Docs which works very much similar to the UNIX chmod. It works with java se 7+ though.

提交回复
热议问题