filter out some files

This commit is contained in:
Doug MacEachern 2005-12-20 01:48:02 +00:00
parent 24b8856414
commit c2b8921196
1 changed files with 8 additions and 2 deletions

View File

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