} catch (ParseException e) {
printUsage(e.getMessage());
return;
}
VfsFile parent = session.getCurrentDirectory();
try {
VfsFile[] children =
vfsService.getVfsFiles(sessionID, parent.getID());
for (int idx = 0; idx < children.length; idx++) {
VfsFile child = children[idx];
StringBuffer sb = new StringBuffer();
if (child.getType() == VfsFile.FileType.DIRECTORY)
sb.append("D ");
else
sb.append("F ");
sb.append(child.getName()).append(" ");
sb.append(child.getSize()).append(" ");
sb.append(child.getCreated());
System.out.println(sb.toString());
}
} catch (SessionException e) {
session.clearSessionID();
throw new IllegalStateException("ERROR: Session time out.");