@Override protected void processPath(PathData item) throws IOException { long length; if (item.stat.isDirectory()) { length = item.fs.getContentSummary(item.path).getLength(); } else { length = item.stat.getLen(); } usagesTable.addRow(formatSize(length), item); } }
@Override protected void processPath(PathData item) throws IOException { long length; if (item.stat.isDirectory()) { length = item.fs.getContentSummary(item.path).getLength(); } else { length = item.stat.getLen(); } usagesTable.addRow(formatSize(length), item); } }
@Override protected void processPath(PathData item) throws IOException { long length; if (item.stat.isDirectory()) { length = item.fs.getContentSummary(item.path).getLength(); } else { length = item.stat.getLen(); } usagesTable.addRow(formatSize(length), item); } }
@Override protected void processPath(PathData item) throws IOException { ContentSummary contentSummary = item.fs.getContentSummary(item.path); long length = contentSummary.getLength(); // if (excludeSnapshots) { // length -= contentSummary.getSnapshotLength(); // } usagesTable.addRow(formatSize(length), item); } }
@Override protected void processPath(PathData item) throws IOException { ContentSummary contentSummary = item.fs.getContentSummary(item.path); long length = contentSummary.getLength(); long spaceConsumed = contentSummary.getSpaceConsumed(); if (excludeSnapshots) { length -= contentSummary.getSnapshotLength(); spaceConsumed -= contentSummary.getSnapshotSpaceConsumed(); } getUsagesTable().addRow(formatSize(length), formatSize(spaceConsumed), item); } }