更改文件权限 [英] change file permission

查看:82
本文介绍了更改文件权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要使用Java更改文件权限.对于readonly属性,有内置函数file.setReadOnly().但是我找不到可写属性和读写属性的任何内置函数.任何人都可以告诉我完成上述操作的方法.

谢谢.

Hi,

i need to change file permission using java. for readonly property there is built-in function file.setReadOnly(). but i cant find any built-in function for writable property and readwrite property. Any one can tell me the way to do the above.

Thanks.

推荐答案

Java SE 6.0显然具有 [Jav a的较旧版本中的"New Window> ^ ],但是缺少它.例如,请参见以下页面:"IO:只读文件混淆" [ ^ ].
Java SE 6.0 apparently has it[^], in older versions of Java, however it is missing. See, for instance, the following page: "IO: Read-Only File Confusion"[^].


这篇关于更改文件权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆