private void getFileInfo(Sigar sigar, String file)
throws SigarException {
traceln("Entry=" + file);
FileInfo info = sigar.getFileInfo(file);
assertGtEqZeroTrace("Permisions",
info.getPermissions());
assertTrueTrace("Permissions",
info.getPermissionsString());
assertGtEqZeroTrace("Mode", info.getMode());
assertTrueTrace("Type", info.getTypeString());
assertGtEqZeroTrace("Size", info.getSize());
assertGtEqZeroTrace("Uid", info.getUid());
assertGtEqZeroTrace("Gid", info.getUid());
assertGtEqZeroTrace("Inode", info.getInode());
traceln("Device=" + info.getDevice());
assertGtEqZeroTrace("Nlink", info.getNlink());
assertGtEqZeroTrace("Atime", info.getAtime());
traceln(new Date(info.getAtime()).toString());
assertGtZeroTrace("Mtime", info.getMtime());
traceln(new Date(info.getMtime()).toString());
assertGtZeroTrace("Ctime", info.getCtime());
traceln(new Date(info.getCtime()).toString());
if (info.getType() == FileInfo.TYPE_DIR) {
try {
DirStat stats = sigar.getDirStat(file);
assertEqualsTrace("Total",
new File(file).list().length,
stats.getTotal());