filter out some files

This commit is contained in:
Doug MacEachern 2005-12-20 01:48:02 +00:00
parent 24b8856414
commit c2b8921196

View File

@ -88,10 +88,16 @@ public class TestFileInfo extends SigarTestCase {
for (int i=0; i<entries.length; i++) { for (int i=0; i<entries.length; i++) {
file = entries[i]; file = entries[i];
File testFile = new File(dir, file);
if (!(testFile.exists() && testFile.canRead())) {
continue;
}
if (testFile.isHidden()) {
continue;
}
traceln(file + ":"); traceln(file + ":");
getFileInfo(sigar, getFileInfo(sigar,
new File(dir, file).getAbsolutePath()); testFile.getAbsolutePath());
} }
file = "NO SUCH FILE"; file = "NO SUCH FILE";