if (!f.canRead() || !f.isFile() || f.isHidden()) {
continue;
}
// look in the project
if (RessRess.endWithExtention(f, end)) {
res.add(new RessInfoFile(project, folder + File.separator + f.getName()));
}
}
}
HashMap<String, File> rtp = RTP.getRTPs(project);
// add rtp
for (String name : rtp.keySet()) {
// build path
fold = new File(rtp.get(name), folder);
// contain files?
if (fold.listFiles() == null || fold.listFiles().length == 0) {
continue;
}
// list folder
for (File f : fold.listFiles()) {
// right file?
if (!f.canRead() || !f.isFile()) {
continue;
}
// look in the project
if (RessRess.endWithExtention(f, end)) {
RessInfoFile r = new RessInfoFile(project, folder + File.separator + f.getName());
r.setAbsolutePath(f);
r.setCanDelete(false);
res.add(r);
}
}
}