private void checkTargetIsNotWritable(File target,Throwable exception) throws CoreException {
  if (!target.canWrite()) {
    String message=NLS.bind(Messages.couldNotWrite,target.getAbsolutePath());
    Policy.error(EFS.ERROR_WRITE,message);
  }
}

private void checkTargetIsNotWritable ( File target , Throwable exception ) throws CoreException { if ( ! target . canWrite ( ) ) { String message = NLS . bind ( Messages . couldNotWrite , target . getAbsolutePath ( ) ) ; Policy . error ( EFS . ERROR_WRITE , message ) ; } }
this method is called after a failure to modify a directory . check to see if the target is not writable ( e . g . device doesn ' t not exist ) and if so then throw an exception with a more specific message and error code .
