How to change the image permission mode to 777 using java code?
•
Java
I want to use java code to assign the permission mode value "777" to the image file How can I express it in Java? Because I can't delete images using the default permission mode "664"
Solution
You can create a file object associated with the file, and then use setexecutable, setreadable, and setwritable to change permissions Of course, these operations will fail if your program does not have permission to change access to the file
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码