public class ReadOnlyAttributeUtil
extends java.lang.Object
Constructor and Description |
---|
ReadOnlyAttributeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
setReadOnlyAttribute(java.lang.String path,
boolean readOnlyStatus) |
static void |
setReadOnlyAttribute(VirtualFile file,
boolean readOnlyStatus)
Sets specified read-only status for the spcified
file . |
public static void setReadOnlyAttribute(VirtualFile file, boolean readOnlyStatus) throws java.io.IOException
file
.
This method can be performed only for files which are in local file system.file
- file which read-only attribute to be changed.readOnlyStatus
- new read-only status.java.lang.IllegalArgumentException
- if passed file
doesn't
belong to the local file system.java.io.IOException
- if some IOException
occurred.public static void setReadOnlyAttribute(java.lang.String path, boolean readOnlyStatus) throws java.io.IOException
java.io.IOException