Recherche de fichiers Java récursive
try (Stream<Path> walkStream = Files.walk(Paths.get("your search directory"))) {
walkStream.filter(p -> p.toFile().isFile()).forEach(f -> {
if (f.toString().endsWith("file to be searched")) {
System.out.println(f + " found!");
}
});
}
Pleasant Pigeon