This method deletes the passed in file attachment from the local file system.
Attachment Methods
public boolean ucDeleteAttachment(Attachment attachment)
public boolean ucDeleteAttachment(Attachment attachment)
{
String filepath = attachment.getExternalAttachmentIdent();
if (filepath == null) { return true; }
File file = new File(filepath);
if (file.delete() != true) {
Z.log.writeToLog(Z.log.ERROR, "ucDeleteAttachment: could not delete file " +
filepath);
return false;
}
return true;
}