From: lgzzsf <lg...@us...> - 2005-09-23 17:14:58
|
Update of /cvsroot/gatormail/GatorMail/src/java/edu/ufl/osg/webmail/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2448/src/java/edu/ufl/osg/webmail/data Modified Files: AttachDAO_FILE.java Log Message: Fixes a bug in the clearing of the Attached files list Index: AttachDAO_FILE.java =================================================================== RCS file: /cvsroot/gatormail/GatorMail/src/java/edu/ufl/osg/webmail/data/AttachDAO_FILE.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AttachDAO_FILE.java 22 Feb 2004 08:00:04 -0000 1.2 --- AttachDAO_FILE.java 23 Sep 2005 17:14:41 -0000 1.3 *************** *** 66,72 **** for (int i = 0; i < attachList.size(); i++) { final AttachObj attachObj = (AttachObj)attachList.get(i); ! final File file = new File(baseDir, attachObj.getFileName()); ! logger.debug("deleting attachment: " + file); ! file.delete(); } } catch (Exception e) { --- 66,70 ---- for (int i = 0; i < attachList.size(); i++) { final AttachObj attachObj = (AttachObj)attachList.get(i); ! removeFile(attachObj); } } catch (Exception e) { |