String name = components[i];
int slashLocation = name.indexOf('/');
if (slashLocation == -1) {
// assume it's a container
try {
FilesContainerInfo containerInfo = client.getContainerInfo(name);
System.out.println("Information for " + name);
System.out.println(" Object Count: " + containerInfo.getObjectCount());
System.out.println(" Total Size: " + format.format(containerInfo.getTotalSize()) + " bytes");
System.out.println();
} catch (Exception e) {
System.err.println("Error getting container info");
e.printStackTrace();
return true;