* (non-Javadoc)
*
* @see jSimMacs.logic.location.DataHandler#deleteBackup(java.lang.String)
*/
public void deleteBackup(String pathString) throws IOException {
SFTPv3Client sftpConn = null;
try {
sftpConn = new SFTPv3Client(conn);
SFTPv3DirectoryEntry dirEntry = getDirectoryEntry(pathString);
if (dirEntry.attributes.isDirectory()) {
deleteBackupDirectory(sftpConn, dirEntry, pathString);
} else if (dirEntry.filename.startsWith("#")
&& dirEntry.filename.endsWith("#"))
sftpConn.rm(pathString);
} catch (IOException e) {
throw e;
} finally {
if (sftpConn != null)
sftpConn.close();
}
}