if (targetFile.getType() != VfsFile.FileType.DIRECTORY) {
System.out.println(
"ERROR: [" + dirName + "] is not directory.");
return;
}
vfsService.deleteObject(sessionID, targetFile.getID());
} catch (VfsIOException e) {
System.out.println("ERROR: " + e.getMessage());
} catch (SessionException e) {
session.clearSessionID();
System.out.println("ERROR: Session time out.");