//Exemple de chemin sourceFolder: ./src/test/resources/TE/source        

try (var files = Files.list(Path.of(sourceFolder))) {
            files.forEach(f -> treatFile(f.toFile()));
        } catch (IOException e) {
            log.error("Impossible de traiter les fichiers du repertoire " + sourceFolder, e);
        }