filter out some files
This commit is contained in:
parent
24b8856414
commit
c2b8921196
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user