private void checkReadOnlyParent(File target,Throwable exception) throws CoreException {
  File parent=target.getParentFile();
  if (parent != null && (attributes(parent) & EFS.ATTRIBUTE_READ_ONLY) != 0) {
    String message=NLS.bind(Messages.readOnlyParent,target.getAbsolutePath());
    Policy.error(EFS.ERROR_PARENT_READ_ONLY,message,exception);
  }
}

private void checkReadOnlyParent ( File target , Throwable exception ) throws CoreException { File parent = target . getParentFile ( ) ; if ( parent != null && ( attributes ( parent ) & EFS . ATTRIBUTE_READ_ONLY ) != 0 ) { String message = NLS . bind ( Messages . readOnlyParent , target . getAbsolutePath ( ) ) ; Policy . error ( EFS . ERROR_PARENT_READ_ONLY , message , exception ) ; } }
this method is called after a failure to modify a file or directory . check to see if the parent is read - only and if so then throw an exception with a more specific message and error code .
