} catch (NFS2Exception e) {
throw new IOException("Can not remove directory " + name + "." + e.getMessage(), e);
}
} else {
try {
nfsClient.removeFile(directoryEntry.getFileHandle(), name);
} catch (NFS2Exception e) {
throw new IOException("Can not remove file " + name + "." + e.getMessage(), e);
}
}
tableEntry.removeEntry(name);